cancel
Showing results for 
Search instead for 
Did you mean: 

STLINK CLI: No reset after enablig readout protection

load2005
Associate III
Posted on May 22, 2017 at 11:03

Hello,

I'm using ST-LINK_CLI.exE to program the controler. I want to enable read out protection and to make cpu run after programming. Here is the script:

ST-LINK_CLI.exe -list

ST-LINK_CLI.exe -c ID=0 SWD freq=1000 UR

ST-LINK_CLI.exe -P code.hex -V 'after_programming'

ST-LINK_CLI.exe -OB RDP=1 

ST-LINK_CLI.exe -HardRst

After running the script i see that read out is enabled (although i got Could not update option bits) but the cpu is not running.

If i remove the 

ST-LINK_CLI.exe -OB RDP=1  line. The CPU is runnign after program. 

Somehow option bits affect the reset commnad?

Where could be the problem?

Thanks,

0 REPLIES 0