2010-03-31 04:10 AM
Flash memory write
2011-05-17 04:45 AM
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.