cancel
Showing results for 
Search instead for 
Did you mean: 

How to count and keep how many uploads has been done on STM32F103C8T6´s flash memory ?

AntonioTesta
Associate

I would like to implement a bootloader for STM32F103C8T6 that would count and keep in a special protected area how many uploads has done over its flash memory. Does anybody would give some some reference about this matter ? Thanks a lot. Antonio

3 REPLIES 3

You could journal a sequence number over an available sector, and perhaps also keep track in an unused vector table entry on the app as it is written/updated each time.

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

Yes. I already have in my app a counter for write cicles done under app. But since the app can be uploaded many many times, I want to have a more accurated flash life expectation... That is why I thought in increment (and keep) the counter in the bootloader too...

Really don't want to erase the loader, but you can journal a sequence count or tags.

Perhaps use NVRAM/RTC if available

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