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, 18:37 Uhr, schrieb Andrew Lunn <andrew@lunn.ch>:

On Sun, Sep 27, 2009 at 08:57:59AM +0530, Mandeep Sandhu wrote:
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?

Wrong. You just need to be careful where you write. The AT91SAM7X512 is also a bit easier since it has two controllers, so you could have one controller for code and the other for data.

Andrew


....and make sure that while you are fiddeling around in one bunch of flash, interrupts are either off or interrupts do not use code from this same bunch of flash....
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]