Skip to main content
Senior
November 2, 2022
Question

UART Bootloader on STM32F04xxx

  • November 2, 2022
  • 1 reply
  • 1121 views

Hello!

I'm trying to use the embedded bootloader on STM32F042K6T6, by UART protocol, but no luck yet. I'm using USART1 pins (PA9/PA10) and BOOT0 to a button and 3v3, so I press this button and power on my board. On STM32CubeProgrammer, I've selected my UART to USB converter (pullup on RX line) COM port and after clicking "Connect" on software, there is a response from target but it didn't go on:

0693W00000VOkUTQA1.png 

Am I missing anything?

Thanks!

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
November 3, 2022

It works once after reset, and you need to ensure you don't have other signals on pins it might be monitoring. Check AN2606 for a list

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PeagaAuthor
Senior
November 3, 2022

Hi @Community member​, thanks for your feedback.

Yes, I've followed the AN2606 before selecting the pins, so there's no signal in UART2 or USB or I2C. Regarding the reset, I've replaced it by a power on with BOOT0 activated.

I have another bootloader solution but using STM32H7 and DFU (and a button on BOOT0), working flawless, so I thought it would be easy too...