Skip to main content
Cvan .7
Associate II
January 26, 2022
Solved

Is it true that STM32WLE5 (UFBGA73) UART programming is over pin E5 (TX) and C8 (RX)?

  • January 26, 2022
  • 1 reply
  • 957 views

Application note AN2606, on page 380. It says that in the default bootloader, USART is used on pin PA9 (E5)(TX) and PA10 (C8)(RX). However, when I select USART1 in STM32CubeMX, in mode Asynchronous, pins E1 (TX) and C3 (RX) are used. USART programming is not possible with the default bootloader then, right?

This topic has been closed for replies.
Best answer by Peter BENSCH

Welcome, @Cvan .7​, to the community!

RX and TX of USART1 can each run via an alternative pin, e.g. TX via PB6 or PA9, which can also be selected accordingly in STM32CubeMX or STM32CubeIDE (Ctrl+Click for at least 0.5 seconds).

However, the definition of these pins in your user program only has an effect on the boot loader if you assign the pins used in the boot loader in such a way that the boot process could be disturbed.

So to answer your question: yes, programming via UART is possible, even if this UART is used later in the user program.

Does it answer your question?

Regards

/Peter

1 reply

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 26, 2022

Welcome, @Cvan .7​, to the community!

RX and TX of USART1 can each run via an alternative pin, e.g. TX via PB6 or PA9, which can also be selected accordingly in STM32CubeMX or STM32CubeIDE (Ctrl+Click for at least 0.5 seconds).

However, the definition of these pins in your user program only has an effect on the boot loader if you assign the pins used in the boot loader in such a way that the boot process could be disturbed.

So to answer your question: yes, programming via UART is possible, even if this UART is used later in the user program.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.