2013-08-12 07:53 AM
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.2013-08-12 08:13 AM
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.
2013-08-12 08:25 AM
Oh cool, that seems pretty easy. I just changed my linker script to not include the last page.