cancel
Showing results for 
Search instead for 
Did you mean: 

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

Cvan .7
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

1 REPLY 1
Peter BENSCH
ST Employee

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.