11.5 Software Debugging on the Target – Software-Based Techniques
11.5.1 General
Three general points need to be raised at this juncture. First, in order to debug the target code, some on-chip facilities are needed. The technique described here – the software-based one – doesn't involve any hardware, either external or on-chip; nor does it employ special on-chip microcode. Fundamentally, it relies on executing code that has been loaded onto the target device. Second, this technique implicitly assumes that the target board hardware works properly. Third, in general, it is meant to support software development only. It can be used for hardware testing when incremental development methods are used but there are better ways of doing this.
The basic system configuration required for software debugging in the target was shown earlier, in Figure 11.4. Host/target interaction takes place typically using command-line interfacing (using the PC as a terminal device...