2.3 Using C-SPY
2.3.1 Breakpoint Types
2.3.2 Using Breakpoints
Using C-SPY
See Appendix C for a description of FET-specific menus within C-SPY.
The C-SPY breakpoint mechanism makes use of a limited number of on-chip debugging resources
(specifically, N breakpoint registers, see Table 2-1 ). When N or fewer breakpoints are set, the application
runs at full device speed (or realtime). When greater than N breakpoints are set and Use Virtual
Breakpoints is enabled (FET Debugger → Breakpoints → Use virtual breakpoints), the application runs
under the control of the host PC; the system operates at a much slower speed but offers unlimited
software breakpoints (or non-realtime). During non-realtime mode, the PC, in effect, repeatedly single
steps the device and interrogates the device after each operation to determine if a breakpoint has been
hit.
Both (code) address and data (value) breakpoints are supported. Data breakpoints and range breakpoints
each require two MSP430 hardware breakpoints.
Table 2-1. Number of Device Breakpoints and Other Emulation Features
4-Wire 2-Wire Breakpoints Range Clock State Trace
Device
JTAG Spy-Bi-Wire (N) Breakpoints Control Sequencer Buffer
MSP430F11x1 X 2
MSP430F11x2 X 2
MSP430F12x X 2
MSP430F12x2 X 2
MSP430F13x X 3 X
MSP430F14x X 3 X
MSP430F15x X 8 X X X X
MSP430F16x X 8 X X X X
MSP430F161x X 8 X X X X
MSP430F20xx X X 2 X
MSP430F21x1 X 2 X
MSP430F22x4 X X 2 X
MSP430F23x0 X 2 X
MSP430F41x X 2 X
MSP430F42x X 2 X
MSP430F42x0 X 2 X
MSP430F43x X 8 X X X X
MSP430F44x X 8 X X X X
MSP430FE42x X 2 X
MSP430FG43x X 2 X
MSP430FG461x X 8 X X X X
MSP430FW42x X 2 X
If C-SPY is started with greater than N breakpoints set and virtual breakpoints are disabled, a message is
output to inform the user that only N (realtime) breakpoints are enabled (and one or more breakpoints are
disabled). Note that the workbench permits any number of breakpoints to be set, regardless of the Use
Virtual Breakpoints setting of C-SPY. If virtual breakpoints are disabled, a maximum of N breakpoints can
be set within C-SPY.
Reseting a program temporarily requires a breakpoint if Project → Options → Debugger → Setup →
Run To is enabled (see FAQ Debugging #32 ).
20 Development Flow SLAU138F – June 2004 – Revised March 2007
Submit Documentation Feedback