Skip to main content
LVolp.2
Associate II
December 1, 2022
Solved

Using commands, how to "run after programming" ?

  • December 1, 2022
  • 2 replies
  • 4768 views

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

This topic has been closed for replies.
Best answer by Aziz BRIGUI

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

2 replies

Aziz BRIGUI
Aziz BRIGUIBest answer
ST Technical Moderator
December 1, 2022

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
LVolp.2Author
Associate II
December 9, 2022

@Aziz BRIGUI​ 

I just tested your solution and it works perfectly.

Thank you very much

Have a nice day