Chapter 36 Nexus Development Interface (NDI)
MPC5602P Microcontroller Reference Manual, Rev. 4
928
Freescale Semiconductor
•
Select the DBCR0 register and update it with the DBCR0
EDM
bit set
•
Clear the DBSR status bits
•
Write appropriate values to the DBCRx, IAC, DAC registers. Note that the initial write to DBCR0
will only affect the EDM bit, so the remaining portion of the register must now be initialized,
keeping the EDM bit set
At this point the system is ready to commence debug operations. Depending on the desired operation,
different steps must occur.
•
Optionally, set the OCR
I_DMDIS
and/or OCR
D_DMDIS
control bits to ensure that no TLB misses
will occur while performing the debug operations
•
Optionally, ensure that the values entered into the MSR portion of the CPUSCR during the
following steps cause interrupt to be disabled (clearing MSR
EE
and MSR
CE
). This will ensure that
external interrupt sources do not cause single-step errors.
To single-step the CPU:
•
The debugger scans in either a new or a previously saved value of the CPUSCR (with appropriate
modification of the PC and IR as described in
Section 36.12.8.2, “Control State Register (CTL)
),
with a Go+Noexit OnCE Command value.
•
The debugger scans out the OSR with “no-register selected”, Go cleared, and determines that the
PCU has re-entered the Debug state and that no ERR condition occurred
To return the CPU to normal operation (without disabling external debug mode)
•
The OCR
DMDIS
, OCR
DR
, control bits should be cleared, leaving the OCR
WKUP
bit set
•
The debugger restores the CPUSCR with a previously saved value of the CPUSCR (with
appropriate modification of the PC and IR as described in
Section 36.12.8.2, “Control State
), with a Go+Exit OnCE Command value.
•
The OCR
WKUP
bit may then be cleared
To exit External Debug Mode
•
The debugger should place the CPU in the debug state via the OCR
DR
with OCR
WKUP
asserted,
scanning out and saving the CPUSCR
•
The debugger should write the DBCRx registers as needed, likely clearing every enable except the
DBCR0
EDM
bit
•
The debugger should write the DBSR to a cleared state
•
The debugger should rewrite the DBCR0 with all bits including EDM cleared
•
The debugger should clear the OCR
DR
bit
•
The debugger restores the CPUSCR with the previously saved value of the CPUSCR (with
appropriate modification of the PC and IR as described in
Section 36.12.8.2, “Control State
), with a Go+Exit OnCE Command value.
•
The OCR
WKUP
bit may then be cleared
NOTE
These steps are meant by way of examples, and are not meant to be an exact
template for debugger operation.
Содержание 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 ...