Prevent Flash Erase of EEPROM Pages During STM32CubeIDE Download
Hello,
I am using an STM32F103VCT microcontroller and the EEPROM emulation library. I write data with the EE_WriteVariable() function and read it back with EE_ReadVariable(). However, whenever I download new firmware to the MCU via ST-Link V2 in STM32CubeIDE, the entire flash memory is erased—including the regions where I stored data using EE_WriteVariable().
Is there any way to download or debug new firmware without erasing the flash pages used by the EEPROM emulation?
For reference, I’m running STM32CubeIDE version 1.18.1. Any suggestions would be greatly appreciated.
Thank you!
