
CSE8E10-2
24
Resolving problems
IAR C-SPY® Hardware Debugger Systems
User Guide
For more information, see the IAR Embedded Workbench® IDE User Guide.
C-SPY USE OF BREAKPOINTS
When you set a breakpoint, C-SPY sets a breakpoint for internal use. To do this, the
breakpoints in the emulator are used. The fact that C-SPY uses breakpoints is normally
not a problem. However, one exception is C-SPY profiling, which requires many
breakpoints.
C-SPY will set a breakpoint if:
● the C-SPY option Run to has been selected (one breakpoint is set temporarily after
each reset)
● the stack plugin is being used (if the C-SPY option Run to has been selected, the
breakpoint needed for that will be used also by the stack plugin)
● the linker option With runtime control modules has been selected (debug support
for program termination and optionally file I/O).
Exceeding the number of available breakpoints will cause the debugger to single step.
This will significantly reduce the execution speed. For this reason you must be aware of
the different breakpoint consumers; see the IAR Embedded Workbench® IDE User
Guide.
You can prevent the debugger from using breakpoints in these situations by deselecting
these options.
Resolving problems
Debugging using the C-SPY hardware debugger systems requires interaction between
many systems, independent from each other. For this reason, setting up this debug
system can be a complex task. If something goes wrong, it might at first be difficult to
locate the cause of the problem.
This section includes suggestions for resolving the most common problems that can
occur when debugging with the C-SPY hardware debugger systems.
For problems concerning the operation of the evaluation board, refer to the
documentation supplied with it, or contact your hardware distributor.
WRITE FAILURE DURING LOAD
There are several possible reasons for write failure during load. The most common is
that your application has been incorrectly linked:
● Check the contents of your linker command file and make sure that your application
has not been linked to the wrong address
Comentarios a estos manuales