Console Output, CodeWarrior Development Studio, MC9S12ZVL Family

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

Console Output, CodeWarrior Development Studio, MC9S12ZVL Family

1,624件の閲覧回数
masashi_takahat
Contributor III

Hello,

I am planning to use the MC9S12ZVL family and would like to use debugging on the DEVKIT-ZVL128.

The development environment is CodeWarrior and I want to know how to print using console to printf.

How can I output to the console using printf?

Or is there a different way?

Best Regards,

code warrior

devkit-zvl128‌

debug console‌

 

5 返答(返信)

1,472件の閲覧回数
masashi_takahat
Contributor III

ZhangJennie

Hi,

Thank you for your advice.

I checked "termio.h".

"termio.h" is similar to ANSI terminal (component).

I understand it.

Please let me know if there are other APIs with functions like printf.

Best Regards,

terminal_printf‌

printf to uart0‌

#debug_printf

0 件の賞賛
返信

1,472件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Welcome. I don't think we have other better APIs.

0 件の賞賛
返信

1,472件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

I am afraid there is no way to use pintf output message to CW10 console window for S12Z device. some other device can do, for example Kinetis.

I suggest you output printf to uart.

 


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,472件の閲覧回数
masashi_takahat
Contributor III

ZhangJennie

Hi,

Thank you quick response.

I understood that printf could not output to the console.

Please tell me about how to printf for UART.

Is there a sample?

Best Regards,

uart;

rs232 uart‌

#com port

0 件の賞賛
返信

1,472件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

Currently, I don't have demo, but I can share idea. It's easy:

Put an #include "termio.h" statement in the code. user can find this header file under
CW10 install\MCU\S12lisa_Support\s12lisac\include

then refer termio.c to implement your own io output function.

Please try it.


Have a great day,
Jun Zhang

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------