How can I temporarily switch output from UART to debugger console?

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

How can I temporarily switch output from UART to debugger console?

998件の閲覧回数
theodortempelme
Contributor I

I am using CW10.6 for Coldfire. Project is ok, output is to UART.

I just want to switch temporarily during development (when serial output happens to be not available).

I would like to switch back and forth with little change to my project. Is that possible?

Thanks for your answer.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

809件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

What's your chip part number?


Have a great day,
Jennie Zhang

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

0 件の賞賛
返信

809件の閲覧回数
theodortempelme
Contributor I

It is a Coldfire 52259. I had hoped that I could independantly of the used device switch to console output (and back to UART output - and input of course, by the way, but I don't need that at the moment). So I thought it was a CodeWarrior thing, not a Coldfire thing.

0 件の賞賛
返信

809件の閲覧回数
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Theodor,

When a new project is created in CodeWarrior with full board support it will have the option to enable the console I/O or UART functionality, the console support can be enabled by changing the CONSOLE_IO_SUPPORT macro to 1 in the exceptions.c file:

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信