How to get the printf to write to UART0?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get the printf to write to UART0?

1,608件の閲覧回数
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?

タグ(1)
0 件の賞賛
2 返答(返信)

1,133件の閲覧回数
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 件の賞賛

1,133件の閲覧回数
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 件の賞賛