
USART1_stmconnection
USART1_FTDIconnection
power supply
Connecting to the UART Bootloader on STM32
After much trial and error, I successfully connected to the UART bootloader on the STM32. Below are the steps I followed:
- Connect the USART1_RX pin of the STM32 to the TX pin of the FTDI module.
- Connect the USART1_TX pin of the STM32 to the RX pin of the FTDI module.
- Ensure a common ground between the STM32 and the FTDI module.
- Set the BOOT0 pin high to enter boot mode by connecting it to the VDD pin (do not use any other pin).
- Power the STM32 via USB by connecting it to your host, and also power the FTDI module via USB by connecting it to your host.
- Open Device Manager and locate the FTDI module’s port (not the STM32 port). Select that port in STM32CubeProgrammer, set the baud rate to 115200, parity to even, and tap on connect. It should connect successfully.
Q1: Why was I experiencing errors and unable to connect my UART Bootloader?
Answer: Initially, I was powering the FTDI module using the STM32 by connecting the VCC of the FTDI to the VCC of the STM32. While this can work if your power output is adequate, to avoid the issues I faced, I recommend powering the FTDI module directly from the host. Ensure you have a common ground between the STM32 and the FTDI module.
I hope this helps the community! and special thanks to the @Andrew Neil and @mƎALLEm