cancel
Showing results for 
Search instead for 
Did you mean: 

Initial flashing stm32g474 without debugger/programmer

Keats
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".