I am trying use MC9S08DZ60CLH with CW10.x and Ful Chip simulator.
I would like to use printf() methods in order to print string on console, I have added termio.c to project, but it hangs on TERMIO_Init().
Hello Grzegorz Konopko,
I ever made printf sample to SCI under QG8. please refer it to your project. see attached
this answer is for you. if it helps, please click on "Correct Answer" button. thanks!
I have compiled your project, use debug target: "CW_QG8_Printf_on_Hardware_example_CW10_6_FLASH_PnE Full Chip Simulator" but do not see any chars on terminal. Mayby doind something wrong, I do not know. May you show me screenshot of your results?
I need console under simulator (Full Chip Simulator), not real hardware, do we understand each other?
I understand your question. however CW10.x for HCS08 doesn't have feature to print to console, it is not possible since there is NO "standard output" to console in CW10.x for HCS08.
so User has to implement their own "pseudo" prinf() function, i.e. to format the output in memory and then print out through SCI.
In fact I do not need printf(). I just need send single char e.g.: TERMIO_PutChar('a');
See my attachment based on your example, nothing is printed out
I just tested TERMIO_PutChar('A') base on this sample on my side it works. the baud rate is 4800. please make sure if you SCI is normal.
Retrieving data ...