Chapter 4:Connecting the Emulator to a Target System
Installing Emulator Features
Breaking into the background monitor
The next thing to try with the background monitor is to see if you can break into it
from your target program. The emulator uses the BKPT signal to break into the
monitor. No stacking is required to enter the monitor. Program execution will stop
abruptly once the BKPT signal takes affect. The background monitor may access
foreground memory during its operation.
While the emulator is in the background monitor, no target interrupts are serviced.
The interrupt signals from the target system are ignored while in the background
monitor. The emulator will not respond to these signals in any way while in the
monitor. If the signals are still present when the monitor is exited, they will be
serviced according to normal interrupt priorities.
Exiting the background monitor
If the procedures described in the preceding paragraphs gave satisfactory results,
you should be able to resume execution of the target program.
r
If the target system and emulator do not work correctly after exiting the
background monitor, the problem may be because your target system is real-time
sensitive. If interrupts that needed to be serviced to keep the target system running
were delayed by the monitor, things such as data overrun could cause problems in
the target system. If you suspect such a problem, use the foreground monitor.
86