Chapter 36 Nexus Development Interface (NDI)
MPC5602P Microcontroller Reference Manual, Rev. 4
874
Freescale Semiconductor
36.9.2
Additional Debug Facilities
In addition to the debug functionality built on Power Architecture technology, e200z0h provides capability
to link instruction and data breakpoints, and also provides a sequential breakpoint control mechanism.
e200z0h also defines two new debug events (CIRPT, CRET) for debugging around critical interrupts.
In addition, e200z0h implements the Debug APU, which when enabled allows Debug Interrupts to utilize
a dedicated set of save/restore registers (DSRR0, DSRR1) for saving state information when a Debug
Interrupt occurs, and for restoring this state information at the end of a debug interrupt handler by means
of the
se_rfdi
instruction.
The e200z0h also provides the capability of sharing resources between hardware and software debuggers.
See
Section 36.9.4, “Sharing Debug Resources by Software/Hardware
36.9.3
Hardware Debug Facilities
The e200z0h core contains facilities that allow for external test and debugging. A modified IEEE 1149.1
control interface is used to communicate with the core resources. This interface is implemented through a
standard 1149.1 TAP (test access port) controller.
By using public instructions, the external debugger can freeze or halt the e200z0h core, read and write
internal state and debug facilities, single-step instructions, and resume normal execution.
Hardware Debug is enabled by setting the External Debug Mode enable bit in Debug Control register 0
(DBCR0
EDM
). Setting DBCR0
EDM
overrides the Internal Debug Mode enable bit DBCR0
IDM
unless
resources are provided back to software via the settings in DBERC0. When the Hardware Debug facility
is enabled, software is blocked from modifying the “hardware-owned” debug facilities. In addition, since
resources are “owned” by the hardware debugger, inconsistent values may be present if software attempts
to read “hardware-owned” debug-related resources.
When hardware debug is enabled by setting DBCR0
EDM
=1, the registers and resources described in
Section 36.11, “Debug Registers
are reserved for use by the external debugger. The same events described
Section 36.10, “Software Debug Events and Exceptions
are also used for external debugging, but
exceptions are not generated to running software. Debug events enabled in the respective DBCR[0-2]
registers are recorded in the DBSR regardless of MSR
DE
, and no debug interrupts are generated unless a
resource is granted back to software via DBERC0 settings. Instead, the CPU will enter debug mode when
an enabled event causes a DBSR bit to become set. DBCR0
EDM
and DBERC0 may only be written
through the OnCE port.
Access to most debug resources (registers) requires that the CPU clock (
m_clk
) be running in order to
perform write accesses from the external hardware debugger.
36.9.4
Sharing Debug Resources by Software/Hardware
Debug resources may be shared by a hardware debugger and software debug based on the settings of debug
control register DBERC0. When DBCR0
EDM
is set, DBERC0 settings determine which debug resources
are allocated to software and which resources remain under exclusive hardware control. Software-owned
resources which set DBSR bits when DBCR0
IDM
=1 will cause a debug interrupt to occur when enabled
Содержание SAFE ASSURE Qorivva MPC5601P
Страница 2: ...MPC5602P Microcontroller Reference Manual Rev 4 2 Freescale Semiconductor ...
Страница 4: ...MPC5602P Microcontroller Reference Manual Rev 4 4 Freescale Semiconductor ...
Страница 62: ...Chapter 2 MPC5602P Memory Map MPC5602P Microcontroller Reference Manual Rev 4 62 Freescale Semiconductor ...
Страница 104: ...Chapter 4 Clock Description MPC5602P Microcontroller Reference Manual Rev 4 104 Freescale Semiconductor ...
Страница 128: ...Chapter 6 Power Control Unit MC_PCU MPC5602P Microcontroller Reference Manual Rev 4 128 Freescale Semiconductor ...
Страница 272: ...Chapter 12 e200z0 and e200z0h Core MPC5602P Microcontroller Reference Manual Rev 4 272 Freescale Semiconductor ...
Страница 280: ...Chapter 14 Crossbar Switch XBAR MPC5602P Microcontroller Reference Manual Rev 4 280 Freescale Semiconductor ...
Страница 306: ...Chapter 16 Internal Static RAM SRAM MPC5602P Microcontroller Reference Manual Rev 4 306 Freescale Semiconductor ...
Страница 380: ...Chapter 17 Flash Memory MPC5602P Microcontroller Reference Manual Rev 4 380 Freescale Semiconductor ...
Страница 532: ...Chapter 21 LIN Controller LINFlex MPC5602P Microcontroller Reference Manual Rev 4 532 Freescale Semiconductor ...
Страница 578: ...Chapter 22 FlexCAN MPC5602P Microcontroller Reference Manual Rev 4 578 Freescale Semiconductor ...
Страница 708: ...Chapter 25 FlexPWM MPC5602P Microcontroller Reference Manual Rev 4 708 Freescale Semiconductor ...
Страница 742: ...Chapter 26 eTimer MPC5602P Microcontroller Reference Manual Rev 4 742 Freescale Semiconductor ...
Страница 760: ...Chapter 27 Functional Safety MPC5602P Microcontroller Reference Manual Rev 4 760 Freescale Semiconductor ...
Страница 782: ...Chapter 28 Fault Collection Unit FCU MPC5602P Microcontroller Reference Manual Rev 4 782 Freescale Semiconductor ...
Страница 788: ...Chapter 29 Wakeup Unit WKPU MPC5602P Microcontroller Reference Manual Rev 4 788 Freescale Semiconductor ...
Страница 798: ...Chapter 30 Periodic Interrupt Timer PIT MPC5602P Microcontroller Reference Manual Rev 4 798 Freescale Semiconductor ...
Страница 816: ...Chapter 32 Cyclic Redundancy Check CRC MPC5602P Microcontroller Reference Manual Rev 4 816 Freescale Semiconductor ...
Страница 848: ...Chapter 33 Boot Assist Module BAM MPC5602P Microcontroller Reference Manual Rev 4 848 Freescale Semiconductor ...
Страница 930: ...Chapter 36 Nexus Development Interface NDI MPC5602P Microcontroller Reference Manual Rev 4 930 Freescale Semiconductor ...