cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute a software reset on STM32 through the st-flash command on Linux?

AChen.16
Associate II

I downloaded the tool st-tools on my Ubuntu 22.04.1 LTS, then after executing the download command st-flash write main.bin 0x08000000, I tried to use the command st-flash reset to reset my STM32F103RCT6, but it doesn't work, it shows:

st-flash 1.7.0
2022-11-22T06:32:25 INFO common.c: F1xx High-density: 64 KiB SRAM, 256 KiB flash in at least 2 KiB pages.
2022-11-22T06:32:25 WARN common.c: NRST is not connected

So how can I execute a software reset on my STM32?

3 REPLIES 3

You'd need to send a sequence to the NVIC, equivalent to the NVIC_SystemReset()

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AChen.16
Associate II

Thanks for your answer, how can I do it through the st-flash command?

Thanks for your answer, how can I do it through the st-flash command?