bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
42
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
The Telnet commands (cont.):
"DELAY <ms> delay for a number of milliseconds",
"MEMACC {CORE | SAP} [<attr>] select memory access mode (normally SAP)",
"SELECT <core> change the current core",
"HOST <ip> change IP address of program file host",
"PROMPT <string> defines a new prompt string",
"CONFIG display or update BDI configuration",
"CONFIG <file> [<hostIP> [<bdiIP> [<gateway> [<mask>]]]]",
"UPDATE reload the configuration without a reboot",
"HELP display command list",
"JTAG switch to JTAG command mode",
"BOOT [loader] reboot the BDI and reload the configuration",
"QUIT terminate the Telnet session"
There are two memory access modes implemented. The default is via System Access Port (SAP).
Via SAP physical addresses are used and the access does not make use of any of the cores. SAP
accesses memory like an additional bus master. If memory access CORE is selected, the current
core executes load/store instructions in its current context. In this mode MMU translation takes place
unless the use of real addresses is forced.
For memory accesses via core the <attr> parameter in the Telnet MEMACC command has the fol-
lowing meaning (default is 0):
+-+-+-+-+-+-+-+-+
|R|-|W|I|M|G|E|-|
+-+-+-+-+-+-+-+-+
R : 1 = Real Addressing Mode (no MMU translation)
WIMGE: Page attributes for load/store instruction, only used if R = 1
For example to access the real address 0x3_8400_0000 with I and G set via the current core:
BDI> memacc core 0x94
BDI> md 0x384000000 1
For memory accesses via SAP the <attr> defines a delay sometimes necessary when accessing
slow memory. The following example define a 100us delay during memory accesses via SAP.
BDI> memacc sap 100
Memory access mode is a global selection. It is not possible to select different modes for different
cores.
Note:
For information about the registers in DCSR space please contact Freescale.