Skip to main content
Associate
April 29, 2024
Solved

STM32WLE5CCUX 48 pin package

I am trying to enable all 3 UARTS (LPUART, USART1 and USART2) within the STM IDE.

However, on choosing LPUART, USARTS2 become unavailable (and vice versa) .

Is this a device limitation?   We really would like to be able to use all 3 uarts (no flow control necessary)

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
April 29, 2024

Hello @DavidG7 and welcome to the ST Community :smiling_face_with_smiling_eyes:.

The STM32WLE5CCUX 48 pin package use the same two Pins (PA2 & PA3) for the TX and RX of the LPUART1 and USART2. So, you can't use them one the same time. 

Best Regards.

STTwo-32

 

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.

6 replies

Andrew Neil
Super User
April 29, 2024

@DavidG7 wrote:

Is this a device limitation ?   


You need to look at the device Datasheet and Reference Manual: they will show you all the available Alternate Function pin allocations - see if any of them works to get access to all 3 UARTs ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
April 29, 2024

Hello @DavidG7 and welcome to the ST Community :smiling_face_with_smiling_eyes:.

The STM32WLE5CCUX 48 pin package use the same two Pins (PA2 & PA3) for the TX and RX of the LPUART1 and USART2. So, you can't use them one the same time. 

Best Regards.

STTwo-32

 

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.
Andrew Neil
Super User
April 29, 2024

According to the datasheet, they both support single-wire half-duplex:

AndrewNeil_0-1714395236648.png

 

@DavidG7  - Maybe if you do that, one could use each pin ... ?

:thinking_face:


A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
STTwo-32
ST Technical Moderator
April 29, 2024

@Andrew Neil 

On the one wire (Half-duplex) mode, both need to enable the TX pin. this pin is the same for both of them (PA2).

Best regards.

STTwo-32

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.