How to send printf output to serial terminal

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

How to send printf output to serial terminal

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

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

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