I want to print character on terminal of codewarrior.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I want to print character on terminal of codewarrior.

Jump to solution
1,226 Views
o4543
Contributor II

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.

0 Kudos
1 Solution
999 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
999 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ji hyun bang ,

Please tell us which chip do you used, and the version of CodeWarrior, thanks.

BR

Alice

0 Kudos
999 Views
o4543
Contributor II

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?

0 Kudos
1,000 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos
999 Views
o4543
Contributor II

Thanks,

Your answer is helpful for me.

Yes. I used custom board. 

Have a great day~

0 Kudos
999 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

OK, welcome!

BR

Alice

0 Kudos