TERMIO via debug connection on HCS08?

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

TERMIO via debug connection on HCS08?

Jump to solution
754 Views
tomlogic
Contributor III

CodeWarrior 10.1 (Build ID 110204)

 

I understand how to set up TERMIO to use SCI1 or SCI2, but on some projects we need both of those serial ports for other purposes.

 

Is it at all possible to write a TERMIO_PutChar() that can output characters to the Console tabe of the Debug Perspective?  After some searching, I saw that the 16-bit processors have a virtual SCI0, but it doesn't look like that's an option on the HCS08.

 

I would think it's got to be possible somehow, unless those are features of the BGD interface that aren't supported by this processor.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
570 Views
kef
Specialist I

I don't know if this is possible in CW 10.1, but NoiceDebugger supports Virtual UART over BDM on S08 to communicate with debugger terminal windo. You reserve two bytes in S08 RAM and edit debugger ini file to specify where debugger should look for I/O data in S08 RAM. You can send/receive any messages containing non-zero data bytes. To send you wait while debugger clears TX byte and write new byte to TX to send. To receive you wait while RX byte is 0, then read received byte and clear RX. Of course these I/O routines can't be interrupt driven and you may need some timeout mechanism if you want your program to keep running without recompile with debugger not connected.

http://www.noicedebugger.com/help/bdm08.htm#VIRTUAL_UART

.

View solution in original post

0 Kudos
Reply
1 Reply
571 Views
kef
Specialist I

I don't know if this is possible in CW 10.1, but NoiceDebugger supports Virtual UART over BDM on S08 to communicate with debugger terminal windo. You reserve two bytes in S08 RAM and edit debugger ini file to specify where debugger should look for I/O data in S08 RAM. You can send/receive any messages containing non-zero data bytes. To send you wait while debugger clears TX byte and write new byte to TX to send. To receive you wait while RX byte is 0, then read received byte and clear RX. Of course these I/O routines can't be interrupt driven and you may need some timeout mechanism if you want your program to keep running without recompile with debugger not connected.

http://www.noicedebugger.com/help/bdm08.htm#VIRTUAL_UART

.

0 Kudos
Reply