We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I cannot seem to get anything out of UART0 or 1 using printf(). What is the correct way to program these UARTS?
Thank you, Stephen Blair
The simulator will not have to decode the output from the simulated UART.
When testing serial communication on real hardware, you should always verify the baudrate with an oscilloscope. That will catch rounding or spelling errors that may result in incorrect baudrates. Even when the PC is able to receive data, the baudrate should be checked - only with a perfect baudrate will the receiver have maximum probability of correctly receiving the data in a noisy environment.
Anyway - if the PC only shows spaces, the scope should tell what is actually sent on the serial cable.