2020-12-12 04:45 AM
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
2020-12-12 06:09 AM
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.
2020-12-12 06:22 AM
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...
2020-12-12 06:47 AM
Really don't want to erase the loader, but you can journal a sequence count or tags.
Perhaps use NVRAM/RTC if available