Skip to main content
AChen.16
Associate
November 21, 2022
Question

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

  • November 21, 2022
  • 2 replies
  • 1258 views

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?

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 21, 2022

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

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    AChen.16
    AChen.16Author
    Associate
    November 22, 2022

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

    AChen.16
    AChen.16Author
    Associate
    November 22, 2022

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