Albatron Technology ARM11/Cortex-A8 user manual Part Regs

Page 38

bdiGDB for GNU Debugger, BDI2000 (ARM11/Cortex-A8)

User Manual 38

3.2.5 Part [REGS]

In order to make it easier to access target registers via the Telnet interface, the BDI can read in a register definition file. In this file, the user defines a name for the register and how the BDI should access it (e.g. as memory mapped, memory mapped with offset, ...). The name of the register defi- nition file and information for different registers type has to be defined in the configuration file.

The register name, type, address/offset/number and size are defined in a separate register definition file. This way, you can create one register definition file for a specific target processor that can be used for all possible positions of the internal memory map. You only have to change one entry in the configuration file.

An entry in the register definition file has the following syntax:

name type

addr size

 

name

The name of the register (max. 12 characters)

type

The register type

 

 

GPR

General purpose register

 

CP15

Coprocessor 15 register

 

CP14

Coprocessor 14register

 

....

 

 

CP0

Coprocessor 0 register

 

MM

Absolute direct memory mapped register

 

DMM1...DMM4

Relative direct memory mapped register

 

IMM1...IMM4

Indirect memory mapped register

 

APB

APB memory mapped register

addr

The address, offset or number of the register

size

The size (8, 16, 32) of the register, default is 32

The following entries are supported in the [REGS] part of the configuration file:

FILE filename

The name of the register definition file. This name is used to access the

 

file via TFTP. The file is loaded once during BDI startup.

 

filename

the filename including the full path

 

Example:

FILE C:\bdi\regs\reg40400.def

DMMn base

This defines the base address of direct memory mapped registers. This

 

base address is added to the individual offset of the register.

 

base

the base address

 

Example:

DMM1 0x01000

IMMn addr data

This defines the addresses of the memory mapped address and data reg-

 

isters of indirect memory mapped registers. The address of a IMMn regis-

 

ter is first written to "addr" and then the register value is access using

 

"data" as address.

 

addr

the address of the Address register

 

data

the address of the Data register

 

Example:

IMM1 0x04700000 0x04700004

© Copyright 1997-2007 by ABATRON AG Switzerland

V 1.04

Image 38
Contents BdiGDB Introduction InstallationUsing bdiGDB BDI2000 BDI ConfigurationTroubleshooting Maintenance Trademarks AppendicesIntroduction BDI2000BDI Configuration For BDI Main / Target a connector signals see table on next InstallationConnecting the BDI2000 to Target BDI Main / Target a Connector Signals Jtag Test ResetChanging Target Processor Type For Target B connector signals see table on next Adaptive ClockingBDI Target B Connector Signals Returned Jtag Test ClockPlease switch on the system in the following sequence External power supply Target systemPower Supply from Target System 142Status LED «MODE» Built in LED indicates the following BDI statesRS232 Connector PC Host BASE-T ConnectorEthernet communication Name DescriptionActivating Bootp Installation of the Configuration SoftwareOverview of an installation / configuration process 1 Configuration with a Linux / Unix host Build the setup toolLoad/Update the BDI firmware/logic Following the steps to bring-up a new BDI2000file name without any path Check configuration and exit loader modeTransmit the initial configuration parameters For more information about Tftp use man tftpd2 Configuration with a Windows host Ory / programmable logicRecover procedure Reassemble the unit as described in Appendix «Maintenance»Testing the BDI2000 to host connection Tftp server for Windows NTUsing bdiGDB Principle of operationConfiguration File Part Init BdiGDB for GNU Debugger, BDI2000 ARM11/Cortex-A8 Format COFF, SREC, AOUT, BIN, ELF or ROM Example Using a startup program to initialize the target systemROM on the target, select ROM as the format Format CoffNone Part TargetCputype ARM1136 PushpullRUN HaltStop LoadonlyBreakmode Hard SoftHard CoreDaisy chained Jtag devices Low level Jtag scan chain configuration Part Host Prompt ARM11 Dump filenamePart Flash BLOCK, CHIP, Unlock Supported Flash Memories AM29BX8 MIRRORX8, I28BX8 STRATAX8, AT49X8Or use the Telnet unlock command Tor. In other words, this is the size of one sector in bytesPart Regs Register definition file Example for a register definitionEntry in the configuration file Debugging with GDB Target setupConnecting to the target GDB monitor command Breakpoint HandlingTarget serial I/O via BDI Target DCC I/O via BDI Telnet Interface Command list DumpCP15 Cache Type CRn = 0, opcode2 = CPxx RegistersSome examples CP15 ID register CRn = 0, opcode2 = CP15 Invalidate I cache line CRn = 7, opcode2 = 1, CRm =Multi-Core Support Specifications BASE-TEnvironmental notice Declaration of Conformity CEWarranty firmware can not be loaded TroubleshootingProblem Possible reasonsMaintenance Unplug the cablesReinstallation Trademarks All trademarks are property of their respective holders