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 executing in the background monitor, no target interrupts are
serviced. The interrupt signals from the target system are ignored. If the interrupt
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. Perhaps interrupts that needed to be serviced to keep the target system
running were delayed or ignored during execution of the background monitor.
Under these conditions, things such as data overrun could cause problems in the
target system. If you suspect your target system is real-time sensitive, use the
foreground monitor.
80