cancel
Showing results for 
Search instead for 
Did you mean: 

Write to FLASH

smhhadima
Associate II
Posted on September 30, 2015 at 08:16

I have discovery 4 (STM32F407)

I want to save some data to FLASH.

I want to know which address/sectors should I write my data at.

I know there are 11 sectors in the stm32f407

I am using GCC and the my firmware size is 2f5e0  (155436)

3 REPLIES 3
Posted on September 30, 2015 at 13:26

How much data, and how often.

The easiest way would be to use the last 128KB block in memory, and then shrink the size presented in the linker script so it doesn't use that.

You've got to floor-plan the memory to figure out where you want to put it. There have been several threads on this and the main STM32 page covering the use of the smaller/faster 16K pages toward the front of flash, and then creating a hole in the linker's scripts so it doesn't put code there. Might want to review those, and ponder a bit.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
smhhadima
Associate II
Posted on September 30, 2015 at 14:36

Thank you.

the problem is this forum ''search'' feature does not work! so I cannot search older topics

Posted on September 30, 2015 at 17:52

I'm not responsible for the sad state of the forum, I use Google to find my own stuff.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..