2017-05-22 02:03 AM
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 -HardRstAfter 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,