cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Flash sector size

stuart239955
Associate II
Posted on October 26, 2010 at 10:52

STM32 Flash sector size

2 REPLIES 2
Posted on May 17, 2011 at 14:12

I've written some bootloader (IAP) code that is used for firmware updating the flash memory. My code therefore needs to know the flash sector size. For me, it will be possible to use this IAP code in different versions of STM32 chips. As these chips have different flash sector sizes, is it possible to read this from software? I can't see any reference to being able to do that. Any help / pointers to the correct registers to look at would be gratefully received.

Look at the source and tables used by the ISP Flash Loader provided by ST. Look at the flash size value stored in the System space at 0x1FFFF7E0 (WORD), The flash size is the main driver of the sector size, and banks.

http://www.st.com/stonline/products/support/micro/files/um0462.zip

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

Clive,

Thanks for the response. I'll look into that!

Stuart