cancel
Showing results for 
Search instead for 
Did you mean: 

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

MBax.2
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
MBax.2
Senior

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

View solution in original post

2 REPLIES 2
MBax.2
Senior

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
ST Employee

@Community member​ Thank you for your contribution!

Regards

/Peter

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.