Skip to main content
load2005
Associate III
May 22, 2017
Question

STLINK CLI: No reset after enablig readout protection

  • May 22, 2017
  • 0 replies
  • 417 views
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,

    This topic has been closed for replies.