cancel
Showing results for 
Search instead for 
Did you mean: 

Using commands, how to "run after programming" ?

LVolp.2
Associate II

Hello, 

To push code using commands, i use this : STM32_Programmer_CLI.exe --connect port=SWD mode=UR reset=HWrst -d file.elf

But I would like the program to run after the programming step is complete (same behaviour as when programmed with STM32CubeProgrammer.

I noticed that "run after programming was checked but I don't know how to do that with commands.

I watch the possibilities using STM32_Programmer_CLI.exe -h but I didn't find it.

STM32 : STM32WB5MMGH6TR

Have a nice day

Laora

1 ACCEPTED SOLUTION

Accepted Solutions
Aziz BRIGUI
ST Employee

Hi @LVolp.2​,

Welcome to ST community ;)!

You can use --go to achieve this via STM32CubeProgrammer CLI. The resulting CLI command would be: STM32_Programmer_CLI --connect port=SWD mode=UR reset=HWrst -d file.elf -g

Let me know if you find this helpful.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Aziz BRIGUI
ST Employee

Hi @LVolp.2​,

Welcome to ST community ;)!

You can use --go to achieve this via STM32CubeProgrammer CLI. The resulting CLI command would be: STM32_Programmer_CLI --connect port=SWD mode=UR reset=HWrst -d file.elf -g

Let me know if you find this helpful.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
LVolp.2
Associate II

@Aziz BRIGUI​ 

I just tested your solution and it works perfectly.

Thank you very much

Have a nice day