Skip to main content
Explorer
August 28, 2024
Solved

Initial flashing stm32g474 without debugger/programmer

  • August 28, 2024
  • 1 reply
  • 784 views

For the STM32G47xxx microcontroller, the transition to the system bootloader is fair by changing the optional bits or by transitioning from the user space. Setting the required optional bits forces the use of a programmer and something like St-Link Utility or CubeProgrammer.

Is it possible to flash the microcontroller without using a programmer? Thus, excluding the JTAG/SVD port from the target device. Flash is not allowed before installing the microcontroller into the device.

    This topic has been closed for replies.
    Best answer by TDK

    You can hold BOOT0 high during reset to boot into the bootloader. Default values are BOOT_LOCK=0, nBOOT1=1, nSWBOOT0=1.

    TDK_0-1724881251637.png

    Once in the bootloader, you can access the device through any of the supported interfaces, including several supported by STM32CubeProgrammer.

    Apart from that, no, there's no way to get into the bootloader, which means you cannot access or program the device without the debug port.

    1 reply

    TDKAnswer
    Super User
    August 28, 2024

    You can hold BOOT0 high during reset to boot into the bootloader. Default values are BOOT_LOCK=0, nBOOT1=1, nSWBOOT0=1.

    TDK_0-1724881251637.png

    Once in the bootloader, you can access the device through any of the supported interfaces, including several supported by STM32CubeProgrammer.

    Apart from that, no, there's no way to get into the bootloader, which means you cannot access or program the device without the debug port.