This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running code from on-chip flash


Am 27.09.2009, 05:27 Uhr, schrieb Mandeep Sandhu <mandeepsandhu.chd@gmail.com>:

Hi all,

I'm going to be using a real hardware for the first time (with ECOS).
The h/w is the Atmel AT91SAM7X512 SoC.

In order to save RAM, i'll be running the code from the on-chip flash
itself (512KB).

Now is it true that if my code resides on the flash, I will not be
able to write to it? I.e is the whole flash area is marked as
readonly?

Thanks,
-mandeep

Yes, its true. You will not be able to run tricks like self-modifying code that resides in flash. You would have to move such a routine to RAM and execute it there.
Robert


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]