cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer - write to memory without reset

JR2963
Senior II

Hi,

I want to write U32 value to EEPROM (STM32L07) without resetting after writing is done.

 
1) This writes the value, but then resets the MCU: STM32_Programmer_CLI.exe -c port=SWD mode=normal freq=8000 -w32 0x8080000 0x3 -v
 
2) I tried this: STM32_Programmer_CLI.exe -c port=SWD mode=hotplug freq=8000 -w32 0x8080000 0x3 - but it returns: Error: Failed to download data! If it's a Flash memory, it may be not erased or protected
 
Any idea how to write the values? Maybe I would use something like:
halt MCU -> write to memory (eeprom) -> run MCU / or reset MCU
 
Thank you.
1 REPLY 1
JR2963
Senior II

Maybe there is another problem - it seems like when I write to the EEPROM so no new value is really saved. STM32CubeProgramer returns verifed succesfully, but it seems like no data are really saved in EEPROM.