At 10:58 PM 11/10/04 +0000, you wrote:
>Hello,
>
>
>I want use the flash into the arm since are only more or less 50 bytes
>the constants variables!!!
>
>I would like somebody to see if this boot.s works with IAP??
>
>the boot.s that I use is:
>
<snip>
>Well, the startup has to reserve space for the IAP working memory. Other
>
>than that there shouldn't be an issue with startup code. Personally I'd
>
>use an external serial (SPI or I2C FRAM or EE) for parameter storage in
>
>order to allow finer grained updating (ie byte at a time). On the other
>
>hand a large block of relatively constant (such as calibration)
>parameters
>
>would work well.
The simple answer is no. It doesn't reserve the space needed. The
simplest place to reserve it would actually be in the ld file.
As a quick fix change the following in the ld file
MEMORY {
flash : ORIGIN = 0, LENGTH = 120K
ram : ORIGIN = 0x40000000, LENGTH = 16K
}
__ram_size__ = 16K;
Change the LENGTH parameter of ram: and the size of __ram_size__ to leave
the amount of space needed at the top of ram. You'll have to read the
documentation I don't remember what the amount of space needed is. Feel
free to contribute it back to the newlib-lpc collection. It's not been
added so far because no-one who is contributing (including me) has needed
and contributed the change. It is on my list by rather low on it.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, IIIMessage
Re: [lpc2000] problem write in flash
2004-11-10 by Robert Adsett
Attachments
- No local attachments were found for this message.