printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

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

printf() support in Processor Expert ConsoleIO in Codewarrior 10.6

2,182件の閲覧回数
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 返信

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