Download Microcontrollers 8-Bit Single-Chip Microcontroller
Transcript
XC864 On-Chip Debug Support • By a request via the JTAG interface - using a special sequence, an external device connected to the JTAG can break the user program running on XC864 and start a debug session; 14.3.1.4 NMI-mode priority over Debug-mode While the core is in NMI-mode (after an NMI-request has been accepted and before the RETI instruction is executed, i.e. the time during a NMI-servicing routine), certain debug functions are blocked/restricted: 1. No external break is possible while the core is servicing an NMI. External break requested inside a NMI-servicing routine will be taken only after RETI is executed. 2. A breakpoint into NMI-servicing routine is taken, but single-step is not possible afterwards. If a step is requested, the servicing routine will run as coded and monitor mode will be invoked again only after a RETI is executed. Hardware breakpoints and software breakpoints proceed as normal while CPU is in NMImode. 14.3.2 Debug Actions In case of a debug event, the OCDS system can respond in two ways depending on the current configuration. 14.3.2.1 Call the Monitor Program XC864 comes with an on-chip Monitor program, factory-stored into the non-volatile Monitor ROM (see Figure 14-1). Activating this program is the primary and basic OCDS reaction to recognized debug events. The OCDS hardware ensures that the Monitor is always safely started, and fully independent of the current system status at the moment when the debug action is taken. Also, interrupt requests optionally raised during Monitor-entry will not disturb the firmware functioning. Once started, the Monitor runs with own stack- and data- memory (see Monitor RAM in Figure 14-1), which guarantees that all of the core and memory resources will be found untouched when returning control back to the user program. Therefore the OCDSdebugging in XC864 is fully non-destructive. The functions of the XC864 Monitor include: • • • Communication with an external Debugger via the JTAG interface Read/write access to arbitrary memory locations and Special Function Registers (SFRs), including the Instruction Pointer and password-protected bits Configuring OCDS and setting/removing breakpoints User’s Manual OCDS, V 1.0 14-6 V1.0, 2008-06
Related documents
TC1100 User Manual Peripheral Units
Infineon XC866-1FR, XC866-2FR, XC866-4FR, XC866L-1FR
Infineon XC167CI-16F, XC167CI-32F Peripheral Units User`s Manual
XC886/888LM Series Errata Sheet, Step AC
Errata Sheet
XC878CLM Series Errata Sheet
XC27x5X Derivatives
Errata Sheet
Errata Sheet
XC878 Class B Software Library
TC1775 User`s Manual System Units
TC1765 User`s Manual System Units