2025-04-07 12:45 PM
I am starting to experiment with stm32f411vet6 (discovery), I have passion for STM32, looking forward to learn and help.
When I turn on UART 6 and test, the default pins are PA9 and PA10, however it doesn't work (some error characters like question mark appear and don't work anymore). However when I switch PA9 and PA10 to PB3 and PA15, UART 6 works fine.
I tried setting PA9 and P10 with output feature then PA9 and PA10 work properly. So what are the possibilities why PA9 and PA10 don't work with UART mode? And how to test it?
Thanks!
2025-04-07 1:08 PM
Welcome to the forum.
For best results, please see: How to write your question to maximize your chances to find a solution.
Here are some STM32 getting started tips:
@Đạt wrote:When I turn on UART 6 and test, the default pins are PA9 and PA10, however it doesn't work (some error characters like question mark appear and don't work anymore).!
How, exactly, do you observe this?
The commonest reason for "junk" characters is wrong baud rate:
Other parameters (eg, frame size) must also match.
2025-04-07 1:15 PM
PA9 and PA10 may be used for some purpose on the Disco board, review the schematic / user manual.
2025-04-07 4:58 PM - edited 2025-04-07 5:01 PM
PA9 and PA10 are connected to the USB circuitry. When working with development boards, you need to make sure the pins you are using are not connected to other circuitry.