TERMIO via debug connection on HCS08?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TERMIO via debug connection on HCS08?

跳至解决方案
549 次查看
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.

标签 (1)
标记 (1)
0 项奖励
1 解答
365 次查看
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 项奖励
1 回复
366 次查看
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 项奖励