Question
STM32F103 - Code flash getting erased automatically
Hi,
Our STM application is a smart bike IoT device, that let's a user track his / her vehicle.
Of our devices deployed in the field, some of them stopped functioning. On debugging we found that the entire STM flash was erased.
What could be the possible reason for the STM flash getting erased?
Additional info:
- We use the the STM internal flash for storing certain critical parameters, which are written to typically 10 times a day.
- Additionally we have a second MCU that is used for updating STM's firmware. We have placed extra checks here to ensure it does not accidentally bootload STM
What measures should we take to prevent such an erase?
Thanks in advance,
Prathamesh
