cancel
Showing results for 
Search instead for 
Did you mean: 

Flash page size at runtime

DmtryVovk
Associate II
Posted on November 20, 2016 at 14:56

Hello , everybody have an idea how to calculate flash sector size during execution on any stm32 device?

#page-size
3 REPLIES 3
Posted on November 20, 2016 at 15:22

You could start by looking at DEVID and the Flash size encoded in the loader.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
DmtryVovk
Associate II
Posted on November 20, 2016 at 15:30

Hello,Clive, 

Yes, i thought about it, but found no suitable algorithm =(

Posted on November 20, 2016 at 16:15

Sometimes in this line of work you have to code your own.

The old Flash Loader Demonstrator had some tabular descriptions of parts and flash geometry. The DfuSe ROM code also provides a table, as I recall.

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