2018-01-24 06:19 AM
Hi,
we are facing troubles with the readout Protection on the STM32L0: when you secure the chip and then want to do a firmware update, the Settings and serial numbers in EEPROM also are erased. Can we somehow protect the code without having a EEPROM erase with each firmware update?
Thanks,
Michael
#rdp #stm32-l02018-01-24 06:29 AM
Does chip have OTP you can use?
Have your update app query device before erase.
2018-01-24 07:38 AM
No OTP available. Okay, so that means there is no option except for doing it manually or using external EEPROM for storing that stuff.
Could I do an update using an internal bootloader or would level 1 protection prevent that as well?
2018-01-24 07:54 AM
Your own firmware can read internals, the system loader is locked down and restricted. You could have your firmware write values in RAM location that is safe and check after mass erase.
Your own loader may also be able to selectively erase and write app sectors. Not probed L0 to that depth.
Also assuming you leave loader alone space at the end might be enough for serialization and calibration data.