Albatron Technology ARM11/Cortex-A8 Halt, Stop, Run, Loadonly, Bdimode Agent RUN, Big

Page 28

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

User Manual 28

STARTUP mode [runtime]This parameter selects the target startup mode. The following modes are supported:

 

HALT

This default mode tries to forces the target to debug

 

 

mode immediately out of reset. If successful, 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. The init list is not processed in

 

 

this mode.

 

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.

 

 

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. The mask is used

 

to setup the ARM Vector catch register.

 

mask

selects the exceptions to catch

 

Example:

VECTOR CATCH 0x1B ;catch Abort, Undef, Reset

© Copyright 1997-2007 by ABATRON AG Switzerland

V 1.04

Image 28
Contents BdiGDB Installation Using bdiGDBIntroduction BDI2000 BDI ConfigurationTroubleshooting Maintenance Trademarks AppendicesIntroduction BDI2000BDI Configuration Connecting the BDI2000 to Target InstallationFor BDI Main / Target a connector signals see table on next 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 BASE-T Connector Ethernet communicationPC Host Name DescriptionOverview of an installation / configuration process Installation of the Configuration SoftwareActivating Bootp Build the setup tool Load/Update the BDI firmware/logic1 Configuration with a Linux / Unix host Following the steps to bring-up a new BDI2000Check configuration and exit loader mode Transmit the initial configuration parametersfile name without any path 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 Using a startup program to initialize the target system ROM on the target, select ROM as the formatFormat COFF, SREC, AOUT, BIN, ELF or ROM Example Format CoffPart Target Cputype ARM1136None PushpullHalt StopRUN LoadonlySoft HardBreakmode Hard 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 Entry in the configuration file Example for a register definitionRegister definition file Connecting to the target Target setupDebugging with GDB GDB monitor command Breakpoint HandlingTarget serial I/O via BDI Target DCC I/O via BDI Telnet Interface Command list DumpCPxx Registers Some examples CP15 ID register CRn = 0, opcode2 =CP15 Cache Type CRn = 0, opcode2 = CP15 Invalidate I cache line CRn = 7, opcode2 = 1, CRm =Multi-Core Support Specifications BASE-TEnvironmental notice Declaration of Conformity CEWarranty Troubleshooting Problemfirmware can not be loaded Possible reasonsMaintenance Unplug the cablesReinstallation Trademarks All trademarks are property of their respective holders