Fujitsu F2 MC-16 Computer Accessories User Manual


 
319
CHAPTER 2 DEPENDENCE FUNCTIONS
2.6.10 How to Display the Output Message from User Program to
the Debugger
This section explains the semihosting feature of MB2100-01 emulator debugger.
What is Semihosting Feature
The semihosting feature is a function to display a message output by the user program on the debugger
window.
As shown in Figure 2.6-9, when receiving an output request to the message buffer register (MBR) on debug
I/O, the debugger displays the output content on the window by receiving the content.
In this case, data from the user program to the debugger is output via DEBUG I/F from MBR according to
the arrow in Figure 2.6-9.
For details of on-chip debugger (OCD) and MBR, refer to the hardware manual.
Figure 2.6-9 Data Flow in Semihosting Feature
What is Terminal Window
Terminal window is the window displaying data when receiving an output request from user program to
MBR. Refer to section "3.22 Terminal Window" of "SOFTUNE Workbench Operation Manual" for details of
terminal window.
The data output to the terminal window is interpreted and output as ASCII characters. However, the
supported control characters are'\n', '\r' and '\t'. The other control characters and the characters after 0x80 are
output as '.'.
The terminal window will appear when the data to be displayed is acquired.
User Target
User Programme
OCD
MBR
MB2100-01
SOFTUNE
Workbench
Terminal
Window
USB
DEBUG I/F
DEBUG I/F