Skip to main content
Jumshed Akhtar
Associate III
November 21, 2019
Question

Cube programmer does not reset the board after programming finished

  • November 21, 2019
  • 2 replies
  • 3317 views

Hi,

cube programmer does not reset the board after loading finished and board remains in boot loader mode. Older Dfuse demo utility used to reset board after loading finished. Does any one has some idea to reset the board grammatically and bring out of reset . As my board may not have physically reset option after firmware update.

 Thanks,

This topic has been closed for replies.

2 replies

Senior III
November 21, 2019

Hi,

I'm using the CubeProgrammer CLI with the following arguments (not using bootloader, but the last argument should work):

-c port=SWD mode=UR -e all --skipErase -d ${workspace_loc}\${project_name}\${config_name:${project_name}}\${project_name}.hex -v -rst

notice the -rst at the end which tells CubeProgrammer to reset the device once programming is done. Also by default it does a soft reset, so you should be good to go with this.

DMira.11
Associate
October 12, 2020

try using -s instead of -rst

Tesla DeLorean
Guru
October 12, 2020

Depends on the STM32 in question, several of the more recent will need a power cycle to stop entering the System Boot Loader after a blank device is programmed. NRST is not sufficient in there cases.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Senior
November 21, 2019

I'm having a similar issue with STM32H750 and CLI, but in my case, I'm putting RDP to Level 1 directly on source code. Without RDP, "-g 0x08000000" at the end of command works fine. It's strange because according to RM, only Level 2 requires a POR...