Debug Interface
ARM DDI 0210C
Copyright © 2001, 2004 ARM Limited. All rights reserved.
5-21
5.9
Monitor mode
The ARM7TDMI processor contains logic that enables the debugging of a system
without stopping the core entirely. This enables the continued servicing of critical
interrupt routines while the core is being interrogated by the debugger. Setting bit [4] of
the debug control register enables the monitor mode features of the ARM7TDMI
processor. When this bit is set, the EmbeddedICE-RT logic is configured so that a
breakpoint or watchpoint causes the ARM7TDMI core to enter abort mode, taking the
Prefetch or Data Abort vectors respectively. There are a number of restrictions you must
be aware of when the ARM core is configured for monitor-mode debugging:
•
Breakpoints and watchpoints cannot be data-dependent in monitor mode. No
support is provided for use of the range functionality. Breakpoints and
watchpoints can only be based on:
—
instruction or data addresses
—
external watchpoint conditioner (
EXTERN0
or
EXTERN1
)
—
User or privileged mode access (
nTRANS
)
—
read/write access for watchpoints (
nRW
)
—
access size (watchpoints
MAS[1:0]
).
•
External breakpoints or watchpoints are not supported.
•
No support is provided to mix halt mode and monitor mode functionality.
The fact that an abort has been generated by the monitor mode is recorded in the abort
status register in coprocessor 14 (see
The abort status register
on page B-56).
The monitor mode enable bit does not put the ARM7TDMI processor into debug state.
For this reason, it is necessary to change the contents of the watchpoint registers while
external memory accesses are taking place, rather than changing them when in debug
state where the core is halted.
If there is a possibility of false matches occurring during changes to the watchpoint
registers (caused by old data in some registers and new data in others) you must:
1.
Disable the watchpoint unit by setting EmbeddedICE-RT disable, bit [5] in the
debug control register.
2.
Poll the debug control register until the EmbeddedICE-RT disable bit is read back
as set.
3.
Change the other registers.
4.
Re-enable the watchpoint unit by clearing the EmbeddedICE-RT disable bit in the
debug control register.
Summary of Contents for ARM7TDMI
Page 6: ...Contents vi Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 10: ...List of Tables x Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 14: ...List of Figures xiv Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 46: ...Introduction 1 26 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 120: ...Coprocessor Interface 4 18 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 142: ...Debug Interface 5 22 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 282: ...Glossary Glossary 6 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...