How to preserve EEPROM space when programming STM32L072CZ
We have a part on our custom board which includes a STM32L072CZ. The part was shipped with obsolete firmware, and we are trying to upgrade the firmware with the new image provided by the manufacturer. We first tried to upgrade the firmware using Segger's J-Flash utility and a J-Link Plus. We were able to reprogram the firmware, but in the process it apparently wiped out the 6k of EEPROM. J-FLash's target selection shows the STM32L072CZ as having 198k of flash, but it should be 192k of flash. I'm guessing the additional 6k is the EEPROM.
The manufacturer suggested we try STM32CubeProgrammer. This utility connects using the J-Link, and it correctly recognizes the target. Since this particular target has already had the EEPROM wiped out when using J-Flash, I would like to confirm that using STM32CubeProgrammer will preserve the EEPROM. Are there any steps I need to take within STM32Cube Programmer to preserve the EEPROM or does it recognize the target as having 192k, and will not overwrite the EEPROM? If I first erase before programming, does it erase the EEPROM space also?


