
GRMON3-UM
June 2019, Version 3.1.0
64
www.cobham.com/gaisler
6. Debug drivers
This section describes GRMON debug commands available through the TCL GRMON shell.
6.1. AMBA AHB trace buffer driver
The at command and its subcommands are used to control the AHBTRACE buffer core. It is possible to record
AHB transactions without interfering with the processor. With the commands it is possible to set up triggers formed
by an address and an address mask indicating what bits in the address that must match to set the trigger off. When
the triggering condition is matched the AHBTRACE stops the recording of the AHB bus and the log is available
for inspection using the at command. The at delay command can be used to delay the stop of the trace recording
after a triggering match.
Note that this is an stand alone AHB trace buffer it is not to be confused with the DSU AHB trace facility. When
a break point is hit the processor will not stop its execution.
The info sys command displays the size of the trace buffer in number of lines.
ahbtrace0 Cobham Gaisler AMBA Trace Buffer
AHB: FFF40000 - FFF60000
Trace buffer size: 512 lines
6.2. Clock gating
The GRCLKGATE debug driver provides an interface to interact with a GRCLKGATE clock gating unit. A
command line switch can be specified to automatically reset and enable all clocks, controlled by clock gating
units, during GRMON's system initialization.
The GRCLKGATE core is accessed using the command grcg, see command description in Appendix B, Command
syntax for more information.
6.2.1. Switches
-cginit
[,
<mask>
,
<mask>
,...]
Reset and enable all clock-signals controlled by GRCLKGATE during initialization. If no mask is set then
all clock-signals will be enabled. If a mask is specified, then clock-signals that will be enabled depends on
the mask. One mask per GRCLKGATE core.
6.3. DSU Debug drivers
The DSU debug drivers for the LEON processor(s) is a central part of GRMON. It handles most of the functions
regarding application execution, debugging, processor register access, cache access and trace buffer handling. The
most common interactions with the DSU are explained in Chapter 3, Operation. Additional information about the
configuration of the DSU and the LEON CPUs on the target system can be listed with the command info sys.
dsu0 Cobham Gaisler LEON4 Debug Support Unit
AHB: D0000000 - E0000000
AHB trace: 64 lines, 32-bit bus
CPU0: win 8, hwbp 2, itrace 64, V8 mul/div, srmmu, lddel 1, GRFPU-lite
stack pointer 0x4ffffff0
icache 2 * 8 kB, 32 B/line lrr
dcache 2 * 4 kB, 32 B/line lrr
CPU1: win 8, hwbp 2, itrace 64, V8 mul/div, srmmu, lddel 1, GRFPU-lite
stack pointer 0x4ffffff0
icache 2 * 8 kB, 32 B/line lrr
dcache 2 * 4 kB, 32 B/line lrr
6.3.1. Switches
Below is a list of commandline switches that affects how the DSU driver interacts with the DSU hardware.
-nb
When the -nb flag is set, the CPUs will not go into debug mode when a error trap occurs. Instead the OS
must handle the trap.
Содержание GRMON3
Страница 56: ...GRMON3 UM June 2019 Version 3 1 0 56 www cobham com gaisler...
Страница 114: ...GRMON3 UM June 2019 Version 3 1 0 114 www cobham com gaisler...
Страница 123: ...GRMON3 UM June 2019 Version 3 1 0 123 www cobham com gaisler dcache...
Страница 156: ...GRMON3 UM June 2019 Version 3 1 0 156 www cobham com gaisler SEE ALSO Section 6 13 On chip logic analyzer driver...
Страница 208: ...GRMON3 UM June 2019 Version 3 1 0 208 www cobham com gaisler SEE ALSO Section 3 5 Tcl integration...