2010-10-26 01:52 AM
STM32 Flash sector size
2011-05-17 05:12 AM
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
2011-05-17 05:12 AM
Clive,
Thanks for the response. I'll look into that! Stuart