|
UPSD3354DV-40U6 Datasheet, PDF (59/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic | |||
|
◁ |
UPSD33xx
12 Debug unit
Debug unit
The 8032 MCU module supports run-time debugging through the JTAG interface. This same
JTAG interface is also used for in-system programming (ISP) and the physical connections
are described in the PSD module section, Section 27.5.1: JTAG ISP and JTAG debug on
page 233.
Debugging with a serial interface such as JTAG is a non-intrusive way to gain access to the
internal state of the 8032 MCU core and various memories. A traditional external hardware
emulator cannot be completely effective on the UPSD33xx because of the Pre-Fetch Queue
and Branch Cache. The nature of the PFQ and BC hide the visibility of actual program flow
through traditional external bus connections, thus requiring on-chip serial debugging
instead.
Debugging is supported by Windows PC based software tools used for 8051 code
development from 3rd party vendors listed at www.st.com/mcu. Debug capabilities include:
â Halt or start MCU execution
â Reset the MCU
t(s) â Single step
â 3 match breakpoints
uc â 1 range breakpoint (inside or outside range)
d â Program tracing
ro â Read or modify MCU core registers, DATA, IDATA, SFR, XDATA, and code
P â External Debug Event pin, input or output
lete Some key points regarding use of the JTAG debugger.
o â The JTAG debugger can access MCU registers, data memory, and code memory while
s the MCU is executing at full speed by cycle-stealing. This means âwatch windowsâ may
b be displayed and periodically updated on the PC during full speed operation. registers
O and data content may also be modified during full speed operation.
) - â There is no on-chip storage for Program Trace data, but instead this data is scanned
t(s from the UPSD33xx through the JTAG channel at run-time to the PC host for
processing. As such, full speed program tracing is possible only when the 8032 MCU is
c operating below approximately one MIPS of performance. Above one MIPS, the
du program will not run real-time while tracing. One MIPS performance is determined by
ro the combination of choice for MCU clock frequency, and the bit settings in SFR
registers BUSCON and CCON0.
P â Breakpoints can optionally halt the MCU, and/or assert the external Debug Event pin.
leteâ Breakpoint definitions may be qualified with read or write operations, and may also be
qualified with an address of code, SFR, DATA, IDATA, or XDATA memories.
so â Three breakpoints will compare an address, but the fourth breakpoint can compare an
b address and also data content. Additionally, the fourth breakpoint can be logically
O combined (AND/OR) with any of the other three breakpoints.
â The Debug Event pin can be configured by the PC host to generate an output pulse for
external triggering when a break condition is met. The pin can also be configured as an
event input to the breakpoint logic, causing a break on the falling-edge of an external
Doc ID 9685 Rev 7
59/272
|
▷ |