cancel
Showing results for 
Search instead for 
Did you mean: 

Flash memory write

morpeh89
Associate II
Posted on March 31, 2010 at 13:10

Flash memory write

1 REPLY 1
trevor23
Associate III
Posted on May 17, 2011 at 13:45

Hi,

You can write in any page of the 128k. It is up to you to ensure that your program does not ''grow'' into your ''flash data'' pages. You can setup your projects so that the linker will tell you when the program has grown too big -- how to do this is dependant on what tools you use. You can reserve as many pages as you need for your ''flash data''. Reserving pages at the end of flash is a sensible aproach (as you've done with your 8 pages) .

With regard to changing constant variables in the program memory this is possible but I'd advise against it and store your ''flash data'' outside of program memory (at the end of flash).

All this assumes that the flash is not locked in any way.