How to send printf output to serial terminal

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

How to send printf output to serial terminal

1,295 Views
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 Kudos
Reply
2 Replies

803 Views
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 Kudos
Reply

803 Views
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 Kudos
Reply