2023-02-21 11:56 PM
I tried sample uart example with my stm32f401RE and saw my serial monitor weird things
Solved! Go to Solution.
2023-02-23 12:54 AM
2023-02-21 11:57 PM
check that the baud rates (speed) on the board and PC/terminal prog. match
hth
KnarfB
2023-02-22 12:04 AM
...maybe also the parity.
2023-02-22 12:18 AM
baud rates and parity same board and terminal
2023-02-22 08:23 AM
Did you oscilloscope probe the RX and TX pin between the STLink and the STM32F401 ?
2023-02-22 08:32 AM
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.
2023-02-23 12:54 AM
fixed it without doing anything
I don't understand why