Hi everyone, I'm struggling with a flashing problem for ST MCU (STM32F070CB).
I'm using the STM32 ST-LINK CLI v220.127.116.11 from http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html
We want to flash and set RDP=1 (read protection), we use "-c SWD -P image.hex -OB RDP=1 -V after_programming -Rst" arguments
When we do this, the MCU enters a lock state, we have to unplug/plug it (do a POR?) to make it work again. A system reset with the NRST do not work.
The command works fine when we do not set RDP=1, the MCU just resets normally and is usable.
There is an Option byte loader reset possible, which may me needed maybe, but we cannot do it with ST-Link_CLI
Any idea what to do?