bdi
GDB
for GNU Debugger, BDI2000 (ARM)
User Manual
28
© Copyright 1997-2005 by ABATRON AG Switzerland
V 1.17
STARTUP mode [runtime] This parameter selects the target startup mode. The following modes are
supported:
RESET
This default mode forces the target to debug mode im-
mediately out of reset. No code is executed after reset.
STOP
In this mode, the BDI lets the target execute code for
"runtime" milliseconds after reset. This mode is useful
when monitor code should initialize the target system.
RUN
After reset, the target executes code until stopped by the
Telnet "halt" command.
Example:
STARTUP STOP 3000 ; let the CPU run for 3 seconds
WAKEUP time
This entry in the init list allows to define a delay time (in ms) the BDI inserts
between releasing the reset line and starting communicating with the tar-
get. This delay is necessary when a target needs some wake-up time after
a reset (e.g. Cirrus EP7209).
time
the delay time in milliseconds
Example:
WAKEUP 3000 ; insert 3sec wake-up time
BDIMODE mode param
This parameter selects the BDI debugging mode. The following modes are
supported:
LOADONLY
Loads and starts the application code. No debugging via
JTAG interface.
AGENT
The debug agent runs within the BDI. There is no need
for any debug software on the target. This mode accepts
a second parameter. If RUN is entered as a second pa-
rameter, the loaded application will be started immedi-
ately, otherwise only the PC is set and BDI waits for GDB
requests.
Example:
BDIMODE AGENT RUN
ENDIAN format
This entry defines the endiannes of the memory system.
format
The endiannes of the target memory:
LITTLE (default)
BIG
Example: ENDIAN
LITTLE
VECTOR CATCH [mask] When this line is present, the BDI catches exceptions. For ARM7 targets
or when there is no mask value present, catching exceptions is only pos-
sible if the memory at address 0x00000000 to 0x0000001F is writable.
For ARM9 targets, the mask is used to setup the EmbeddedICE Vector
catch register. Do not define a mask for ARM7 targets.
mask
ARM9 only, selects the exceptions to catch
Example:
VECTOR CATCH ; catch all unhandled exception
VECTOR CATCH 0x1F ;catch Abort, SWI, Undef, Reset