bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
25
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
WAKEUP time
This entry in the init list allows to define a delay time (in ms) the BDI inserts
between releasing the COP-HRESET line and starting communicating
with the target. This init list entry may be necessary if COP-HRESET is de-
layed on its way to the PowerPC reset pin.
time
the delay time in milliseconds
Example:
WAKEUP 3000 ; insert 3sec wake-up time
STARTUP mode [runtime]
This parameter selects the target startup mode.
The following modes are supported:
HALT
This mode forces the target to debug mode immediately
out of reset. If HALT for core number 0 is defined, then
all cores within an SOC will be halted immediatelly out of
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
BREAKMODE mode
This parameter defines how breakpoints are implemented. The current
mode can also be changed via the Telnet interface
SOFT
This is the normal mode. Breakpoints are implemented
by replacing code with a DNH instruction.
HARD
In this mode, the target breakpoint hardware is used.
Only 2 breakpoints at a time is supported.
LOOP
In this mode, breakpoints are implemented by replacing
code with an endless loop (0x48000000). Maybe useful
for special debug tasks. The processor does not auto-
matically enter debug mode, it has to be halted manually
via Telnet or GDB.
Example: BREAKMODE
HARD
STEPMODE mode
This parameter defines how single step (instruction step) is implemented.
The alternate step mode (HWBP) may be useful when stepping instruc-
tions that causes a TLB miss exception.
In case BREAKMODE LOOP is selected, this parameter is ignored and
single step is implemented by replacing the code of the next instruction(s)
with an endless loop (0x48000000).
ICMP
This is the mode, single step is implemented via the in-
struction complete (ICMP) debug event.
HWBP
In this mode, a hardware breakpoint on the next instruc-
tion is used to implement single stepping.
Example: STEPMODE
HWBP