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
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
Welcome. I don't think we have other better APIs.
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.
-------------------------------------------------------------------------------
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
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.
-------------------------------------------------------------------------------