printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

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

printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

591 Views
Roger_Fan
NXP Employee
NXP Employee

There is once a method that can debug Firmware program with printing message into CodeWarrior Console instead of output to h/w Uart

It’s helpful to debug communication procedure in slave mode, if the received data can be pushed into CodeWarrior Console  for view.

URL: http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/

Above is for CodeWarrior 10.3, but when use 10.6. Per checked, there is no valid ConsoleIO component in 10.6. pls see attached screen capture file.

 

Any idea on print message in Console for debug?

 

Thanks!

BR/Roger

Labels (1)
0 Kudos
1 Reply

364 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

I just reproduced your problem, it is because the current clock setting can't set accurate 115200 baud rate. if i set baud rate as 9600, it can work. see attached video baud rate 9600.mp4.

or if you need 115200 baud rate anyway, we can trim  internal reference clock to 31.25. and set MCGOUT as 20M. it works for 115200 baud rate. see below screenshot. see attached video

can it help you?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos