Skip to main content
morpeh89
Associate III
March 31, 2010
Question

Flash memory write

  • March 31, 2010
  • 1 reply
  • 469 views
Posted on March 31, 2010 at 13:10

Flash memory write

    This topic has been closed for replies.

    1 reply

    trevor23
    Associate III
    May 17, 2011
    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.