2024-04-29 04:47 AM - last edited on 2024-04-29 06:16 AM by STTwo-32
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)
Solved! Go to Solution.
2024-04-29 05:14 AM
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.
2024-04-29 04:55 AM
@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 ...
2024-04-29 05:14 AM
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.
2024-04-29 05:55 AM - edited 2024-04-29 05:55 AM
According to the datasheet, they both support single-wire half-duplex:
@DavidG7 - Maybe if you do that, one could use each pin ... ?
:thinking_face:
2024-04-29 06:15 AM
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.
2024-04-29 06:26 AM
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
2024-04-29 06:29 AM
That's always the tradeoff for so much microcontroller in a low pin-count package !