Skip to main content
Explorer
September 25, 2025
Solved

Flashing on STM32G070RBT6

  • September 25, 2025
  • 1 reply
  • 268 views

Hi,
I’m working with an STM32G070RBT6 MCU and trying to flash it over UART. The UART lines are directly connected to an FTDI adapter, which is connected to my PC via USB. The COM ports show up correctly, but when I try flashing through STM32CubeProgrammer using the UART option, it repeatedly fails with the error message shown below.

I’m currently using PA2/PA3 as the UART pins.

"18:15:17 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...
18:16:25 : RTS low
18:16:25 : DTR Low
18:16:25 : Serial Port COM27 is successfully opened.
18:16:25 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
18:16:29 : Timeout error occured while waiting for acknowledgement.
18:16:29 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again... "

    This topic has been closed for replies.
    Best answer by Imen.D

    Hello @Sivakumarzcs128 ,

    Check the boot configuration and the BOOT0 pin state with the default option bytes in the reference manual RM0454:

    ImenD_0-1758786525236.png

    Make sure BOOT0 is High and reset board.

    Some aspects related to the boot process and startup phase of STM32 MCUs are described in this video:

    STM32 boot and startup tips - 2 Embedded bootloader investigations

     

    1 reply

    Imen.DAnswer
    Technical Moderator
    September 25, 2025

    Hello @Sivakumarzcs128 ,

    Check the boot configuration and the BOOT0 pin state with the default option bytes in the reference manual RM0454:

    ImenD_0-1758786525236.png

    Make sure BOOT0 is High and reset board.

    Some aspects related to the boot process and startup phase of STM32 MCUs are described in this video:

    STM32 boot and startup tips - 2 Embedded bootloader investigations

     

    ST Employee
    September 25, 2025

    besides the BOOT0 pin, the option bytes can also be used for configure MCU runs into the system memory, where the bootloader exist.

    for configure the option byte for boot from system memory, you need to set nBOOT_SEL to 1, nBOOT0 to 0, nBOOT1 to 1.