cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Write Address

mattfox
Associate II
Posted on August 12, 2013 at 16:53

I'm working on writing one byte to flash at the beginning of my program (the ID of the board).  I have been able to find a lot of examples of people rewriting their user flash and thus using the user address as the flash write address.  I was wondering what is a good address to use for storing a parameter so that I don't over write anything important.  

I'm using a STM32F373C8 right now, and in the data sheet, it says that the user memory space uses page 127 as it's last page which begins at 0x0803 F800.  I'm currently thinking of just writing to this address because I doubt my program touches this space.  Is this okay?

Thanks for the help in advance. 
2 REPLIES 2
Posted on August 12, 2013 at 17:13

Normally you'd shrink the memory foot-print provided to the linker (scatter file, linker script, gui) so as not to include space you wanted to carve out for your own data.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mattfox
Associate II
Posted on August 12, 2013 at 17:25

Oh cool, that seems pretty easy.  I just changed my linker script to not include the last page.