How to send printf output to serial terminal

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to send printf output to serial terminal

1,881 次查看
anandkumar
Contributor I

I am using Codewarrior 10.2 for K10 microcontroller. How can I print a formatted printf staement on serial terminal using Uart. Please help.

0 项奖励
回复
2 回复数

1,389 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Anand Kumar,

If you update your CW version, you can use the component of ConsoleIO base on PE, and configure it like this:

pastedImage_0.png

then generate code and build it, you will can use the printf!

I wish it helps you!

Best regards!

Jing

0 项奖励
回复

1,389 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Anand:

First, CodeWarrior 10.2 is an old software and I would recommend updating to CW 10.5 which is the latest version, or at least to CW 10.4.

Colleague Erich Styger has published a bunch of information and tutorials about printf matter. Those are not specific for K10, but might be very helpful for you:

Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse

printf() with the FRDM-KL25Z Board and without Processor Expert | MCU on Eclipse

Tutorial: printf() and “Hello World!” with the Freedom KL25Z Board | MCU on Eclipse

Regards!

Jorge Gonzalez

0 项奖励
回复