STM32G071CBT6TR Bootloader Upload Fails After First Flash
I am contacting you to report and request assistance with a recurring issue I am facing while working with the STM32G071CBT6TR microcontroller. I am experiencing problems with the bootloader during UART-based firmware uploads.
The microcontroller programs successfully only the first time via UART using a USB-to-Serial converter (FT232RL). However, after a successful first upload, subsequent upload attempts fail, even though nothing changes in the hardware or the code.
Technical Setup:
MCU: STM32G071CBT6TR
Programming Method: UART (USART1) using USB-to-Serial (FT232RL)
Baud Rate: 115200
Parity: Even (as required by STM32 bootloader)
Boot Mode Configuration:
BOOT0 is connected to 3.3V
Reset pin is manually triggered before upload
Software: STM32CubeProgrammer
Port Status: COM port opens successfully
the observed behavior:
First Upload:
Upload works perfectly with the default settings using STM32CubeProgrammer over UART.Following Uploads:
All subsequent attempts fail with the following error:CopyEditTimeout error occurred while waiting for acknowledgement. Error: Activating device: KO. Please verify the boot mode configuration and check the serial port configuration.Despite confirming that BOOT0 is still high, the reset pin is pressed, and all connections remain unchanged, the bootloader fails to respond.
Serial Output Behavior:
With parity set to even: readable output appears, but the upload still fails.
i've tried the following :
Verified all connections (TX/RX orientation, BOOT0 high, proper reset sequence).
Tried different USB-to-Serial adapters.
Checked signal integrity and power stability (3.3V regulated).
Tried slower baud rates and different computers.
Attempted to enter bootloader manually again via BOOT0 + Reset combo, to no avail.
I would greatly appreciate your assistance in diagnosing and resolving this issue. Specifically, I would like to know:
Is this a known issue with the STM32G071CBT6TR UART bootloader?
Are there any documented limitations or special procedures required after the first flash?
Is there a way to fully reset the bootloader to an initial working state?
Please let me know if you need schematics, logic analyzer captures, or any additional diagnostic information.
Thank you in advance for your time and support.
Best regards,
