I am using Codewarrior 10.2 for K10 microcontroller. How can I print a formatted printf staement on serial terminal using Uart. Please help.
Hi Anand Kumar,
If you update your CW version, you can use the component of ConsoleIO base on PE, and configure it like this:
then generate code and build it, you will can use the printf!
I wish it helps you!
Best regards!
Jing
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