cancel
Showing results for 
Search instead for 
Did you mean: 

ST Link read protection on STM32

Tony Mark
Associate
Posted on May 18, 2017 at 11:26

Hi everyone, I'm struggling with a flashing problem for ST MCU (STM32F070CB).

I'm using the STM32 ST-LINK CLI v3.0.0.0 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?

Thanks!

#read #flashing-stm32 #mcu #st-link #flashing #read-protection
0 REPLIES 0