Skip to main content
AKadi.1
Visitor II
Nov 14, 2022 4:22 AM UTC
Question

I have STM32F031F4P7 microcontroller with USART1_Tx defined on two pins PA9 and PA14. So can we use USART1_Tx of both pins at the same time?

..

This topic has been closed for replies.

2 replies

Danish1
Lead III
Nov 14, 2022 6:10 AM UTC

Try it.

You probably can’t do it through HAL calls because it’s such an unlikely desire.

I suggest you look in the References Manual for how to select Alternate Functions for the GPIO pins. And the Data Sheet for which AltFunction number you need for USART1.

I don’t know if it will work. It depends on the detail of how ST chose to implement the AltFunction circuits, and might differ between stm32 families. (A reason it might not work is if ST chose to prevent inputs from being abused in the same way).

Hope this helps,

Danish

waclawek.jan
Super User
Nov 14, 2022 12:43 PM UTC

My take on this.

​

JW​