cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WLE5CCUX 48 pin package

DavidG7
Associate

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)

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

6 REPLIES 6

@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 ...

STTwo-32
ST Employee

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.

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:


@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.

Thanks for your prompt reply.

Strange decision to make by STM to share the pins on such an important peripheral.

But thanks , appreciate you prompt reply

That's always the tradeoff for so much microcontroller in a low pin-count package !