Skip to main content
MBax.2
Associate III
February 27, 2023
Solved

STM32L476 does not reset after firmware bootload over UART. How to reset the device over UART?

  • February 27, 2023
  • 2 replies
  • 1507 views

I ran into a small footnote in AN3155 stating "System reset is called only for some STM32 BL (STM32F0/F2/F4/F7) and some STM32L4 (STM32L412xx/422xx, STM32L43xxx/44xxx, STM32L45xxx/46xxx) products."

Now I run into the problem that after flashing the firmware over UART, I need to be able to boot the new firmware since the device does not reset by itself. Over UART there is no reset command. I tried the "go" command to jump to 0x08000000 but that does not work either. STM32CubeProgrammer_CLI.exe reports that the "go" command is not supported on my device. Now I'm stuck. How do I run the newly uploaded image without having to powercycle or reset? I'm unable to do that in this product application. I do not want to use SBSFU.

This topic has been closed for replies.
Best answer by MBax.2

I already fixed it. It was a syntax error in my command line command when calling STM32CubeProgrammer_CLI The correct approach is to use the go command and jump to 0x0800000 in order to reset.

in order to program, verify and reset in one command use:

STM32_Programmer_CLI.exe -c port=COM6 -w myfirmware.bin 0x08000000 -v -g 0x08000000

2 replies

MBax.2
MBax.2AuthorBest answer
Associate III
February 27, 2023

I already fixed it. It was a syntax error in my command line command when calling STM32CubeProgrammer_CLI The correct approach is to use the go command and jump to 0x0800000 in order to reset.

in order to program, verify and reset in one command use:

STM32_Programmer_CLI.exe -c port=COM6 -w myfirmware.bin 0x08000000 -v -g 0x08000000

Peter BENSCH
Technical Moderator
February 27, 2023

@Community member​ Thank you for your contribution!

Regards

/Peter