printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

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

printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

926 次查看
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

标签 (1)
0 项奖励
回复
1 回复

699 次查看
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 项奖励
回复