User`s manual

DemoKit-LG2 User’s Manual
22
4. On-Chip Debugging
The DemoKit-LG2 board offers two possibilities for on-chip debugging (OCD). The on-board
debugging function allows on-chip debugging without a need for external debugging hardware. In this
mode, the default USB / UART connection to the host computer serves as the debugging interface. All
standard debugging functions, such as flash programming / downloading, code execution, single-step
command execution, breakpoint setting, memory manipulation and so forth, are available in this mode.
The DemoKit-LG2 also supports use of the QB-78K0MINI on-chip debugging emulator to enable the
MCU’s on-chip debugging function. The system configuration for this type of debugging is shown in
Figure 12.
Figure 12. System Configuration for On-Chip Debugging
4.1 On-Board Debugging
To enable the DemoKit-LG2’s on-board debugging mode, you must configure switch SW1 and the
JP1–JP3 jumpers as described in Table 8.