 Question:
How do you set breakpoints in ROM ?
Answer: The regular break-points you use with the emulator (BA command or clicking
the mouse left button in the line) are " software breakpoints ". They are
implemented by replacing the instruction with a SWI instruction ( emulation interrupt ).
Because the emulator needs to "replace (write)" the SWI instruction in memory,
software breakpoints are only possible in RAM memories.
Some of our devices (C4x, C5x) have an on-chip "analysis
module" to solve this problem. The analysis module allows you to break in a set of
events, one of them may be a program access into an specific location. This will give you
the same functionality of a regular break point. The TI debugger offers a pull down menu
to program our DSP analysis modulo. |