System Call Services

Use this page to activate the debugger's support for system calls and to select options that define how the debugger handles system calls. The CodeWarrior debugger provides system call support over JTAG. System call support lets bareboard applications use the functions of host OS service routines. This feature is useful if you do not have a board support package (BSP) for your target board. The host debugger implements these services. Therefore, the host OS service routines are available only when you are debugging a program on a target board or simulator.

Note: The OS service routines provided must comply with an industry-accepted standard. The definitions of the system service functions provided are a subset of Single UNIX Specification (SUS).
Figure 1. Debug Configurations - System Call ServicesTab
Debug Configurations - System Call ServicesTab

The following table describes the settings on the System Call Services panel.

Table 1. System Call Services Settings
Option Description
Activate Supportfor System Services Check this option to enable support for system services. All the other options on the System Call Services panel are enabled only if you check this checkbox.
stdout/stderr By default, the output written to stdout and stderr appears in a CodeWarrior IDE "console" window. To redirect console output to a file, check the stdout/stderr checkbox. Click Browse to display a dialog box and specify the path and name of this file.
Use sharedconsole window Check this option if you wish to share the same console window between different debug targets. This setting is useful in multi-core or multi-target debugging.
Trace level Use this dropdown list to specify the system call trace level. The place where the debugger displays the traced system service requests is determined by the Trace checkbox. The system call trace level options available are:
  • No Trace - system calls are not traced
  • Summary - the requests for system services are displayed
  • Detailed - the requests for system services are displayed along with the arguments/parameters of the request
Trace By default, traced system service requests appear in a CodeWarrior IDE "console" window. To log traced system service requests to a file, check the Trace checkbox. Click Browse to display a dialog box and define the path and name of this file. In a project created by the New Project wizard, use the library syscall.a rather than a UART library for handling the output.
Root folder The directory on the host system which contains the OS routines that the bareboard program uses for system calls.