Skip to main content
Loodan22
Associate II
February 22, 2023
Solved

nucleo-64 UART problem

I tried sample uart example with my stm32f401RE and saw my serial monitor weird things

0693W00000aHOKwQAO.png0693W00000aHOK8QAO.png

This topic has been closed for replies.
Loodan22
Loodan22Best answer
Associate II
February 23, 2023

fixed it without doing anything

I don't understand why

6 replies

KnarfB
Super User
February 22, 2023

check that the baud rates (speed) on the board and PC/terminal prog. match

hth

KnarfB

Peter BENSCH
ST Technical Moderator
February 22, 2023

...maybe also the parity.

In order 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.
S.Ma
Principal
February 22, 2023

Did you oscilloscope probe the RX and TX pin between the STLink and the STM32F401 ?

Tesla DeLorean
Guru
February 22, 2023

For strings use strlen(), perhaps wrap the string output as a function, so you have to copy-n-paste less code, and make less mistakes.

Check baud rate, and general configuration of UART, and PC side equivalent. The baud rate on the NUCLEO USB CDC changes those of the hard UART on the ST-LINK/V2-1, so it is more critical than other "virtual" serials used in other Arduino boards.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Loodan22
Loodan22AuthorBest answer
Associate II
February 23, 2023

fixed it without doing anything

I don't understand why