we need to protect certain calibration data we store in a STM32L051 microcontroller from being deleted by mass erase operations.
The scenario is as follows:
1- Our production stores some calibration bytes together with a firmware in the microcontroller non-volatile memory. The calibration information is device specific. This calibration values should not be deleted, as indicated, in the entire life of the device.
2- Our customer receives this microcontroller together with an API from us. He/she then creates his own application with the help of the API. Once created, he/she downloads his/her application in the STM32L051 microcontroller, replacing the default firmware from our production.
The question again, how to prevent that the calibration data is not lost if a mass erase is performed?
Thanks in advance for your ideas!