How to get the printf to write to UART0?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the printf to write to UART0?

1,586 Views
thomashoch
Contributor I

I am running the FreeRTOS "hello world" demo imported from an SDK, on a TWR-KV31F120120M development kit with a serial board.  I have MCUXpresso build an .s19 file. I program the FLASH using a PE-MIcro MultiLine Universal via the J-TAG connector. I have added some code to blink the LEDs so that I know that my system is running. I reset the system by cycling power, and I can see my LEDs blink. However, I need to get the printf to write to UART0. I have read various manuals and online information, some claiming that this can be done, and I have followed the instructions the best I could, but I cannot make it print to my dumb terminal on UART0. Does any one know how to do that?

Tags (1)
0 Kudos
2 Replies

1,111 Views
thomashoch
Contributor I

Thank you, the problem has been solved.

I managed to get the UART working by following the import steps in the web page

https://community.nxp.com/docs/DOC-334074

But I am embarrassed that the real problem had to be corrected by our hardware engineer, I had the processor board in my TWR plugged in backwards!

Thank you for your help,

Tom H.

0 Kudos

1,111 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Thomas

I would suggest you check " the redirect printf to uart " when you import the project , then you can see the log info on uart.

pastedImage_1.png

Regards

Daniel

0 Kudos