Hello,
I'm having trouble using the terminal in codewarrior.
I would like to print characters and strings using the terminal's virtual sci, but print is not.
My main statement is as follows.
#include <hidef.h> /* common defines and macros */
#include <terminal.h>
#include <stdio.h>
#include <termio.h>
void main(void) {
/* put your own code here */
TERMIO_Init();
EnableInterrupts;
for(;;) {
_FEED_COP(); /* feeds the dog */
TERMIO_PutChar('v');
} /* loop forever */
/* please make sure that you never leave main */
}
When I use this, Do I set the register of the sci pin of the board and use it?
I read debugger Manual, but i didn't solve it.
Please Help me.
Solved! Go to Solution.
Hello ji hyun bang,
Does your board is a demo board or custom board by yourself?
If there is no SCI pin can connect to your PC, yes, it is impossible to print to PC,
you need a UART-USB translator connect your board and computer, then you can print string or character
to terminal.
Have a great day,
Alice
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hello ji hyun bang ,
Please tell us which chip do you used, and the version of CodeWarrior, thanks.
BR
Alice
Hello, Thank you for your reply.
Sorry, I forgot to write about the chip name and codewarrior version.
I used MC9S12XET256 chip and codewarrior version 5.9.
MC9S12XET256, the muc in the board, supports SCI, but this SCI pin can not connect to the serial port.
If I can not connect to the board's communication pins and serial port, Is it impossible to print the string or character to my computer?
Hello ji hyun bang,
Does your board is a demo board or custom board by yourself?
If there is no SCI pin can connect to your PC, yes, it is impossible to print to PC,
you need a UART-USB translator connect your board and computer, then you can print string or character
to terminal.
Have a great day,
Alice
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Thanks,
Your answer is helpful for me.
Yes. I used custom board.
Have a great day~
OK, welcome!
BR
Alice