2025-09-24 11:07 PM
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... "
2025-09-25 12:47 AM - edited 2025-09-25 12:49 AM
Hello @Sivakumarzcs128 ,
Check the boot configuration and the BOOT0 pin state with the default option bytes in the reference manual RM0454:
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