Albatron Technology ARM11/Cortex-A8 user manual Part Flash

Page 34

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

User Manual 34

3.2.4 Part [FLASH]

The Telnet interface supports programming and erasing of flash memories. The bdiGDB system has to know which type of flash is used, how the chip(s) are connected to the CPU and which sectors to erase in case the ERASE command is entered without any parameter.

CHIPTYPE type

This parameter defines the type of flash used. It is used to select the cor-

 

rect programming algorithm.

 

 

format

AM29F, AM29BX8, AM29BX16, I28BX8, I28BX16,

 

 

AT49, AT49X8, AT49X16, STRATAX8, STRATAX16,

 

 

MIRROR, MIRRORX8, MIRRORX16,

 

 

M58X32, AM29DX16, AM29DX32

 

Example:

CHIPTYPE AM29F

CHIPSIZE size

The size of one flash chip in bytes (e.g. AM29F010 = 0x20000). This value

 

is used to calculate the starting address of the current flash memory bank.

 

size

the size of one flash chip in bytes

 

Example:

CHIPSIZE

0x80000

BUSWIDTH width

Enter the width of the memory bus that leads to the flash chips. Do not en-

 

ter the width of the flash chip itself. The parameter CHIPTYPE carries the

 

information about the number of data lines connected to one flash chip.

 

For example, enter 16 if you are using two AM29F010 to build a 16bit flash

 

memory bank.

 

 

 

 

with

the width of the flash memory bus in bits (8 16 32)

 

Example:

BUSWIDTH

16

FILE filename

The default name of the file that is programmed into flash using the Telnet

 

’prog’ command. This name is used to access the file via TFTP. If the file-

 

name starts with a $, this $ is replace with the path of the configuration file

 

name. This name may be overridden interactively at the Telnet interface.

 

filename

the filename including the full path or $ for relative path.

 

Example:

FILE

F:\gnu\arm\bootrom.hex

 

 

FILE

$bootrom.hex

FORMAT format [offset]

The format of the file and an optional address offset. The optional param-

 

eter "offset" is added to any load address read from the program file.

 

format

SREC, BIN, AOUT, ELF or COFF

 

Example:

FORMAT SREC

 

 

FORMAT ELF 0x10000

WORKSPACE address

If a workspace is defined, the BDI uses a faster programming algorithm

 

that runs out of RAM on the target system. Otherwise, the algorithm is pro-

 

cessed within the BDI.The workspace is used for a 1kByte data buffer and

 

to store the algorithm code. There must be at least 2kBytes of RAM avail-

 

able for this purpose.

 

 

 

address

the address of the RAM area

 

Example:

WORKSPACE 0x00000000

© Copyright 1997-2007 by ABATRON AG Switzerland

V 1.04

Image 34
Contents BdiGDB Introduction InstallationUsing bdiGDB 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 PC Host BASE-T ConnectorEthernet communication Name DescriptionOverview of an installation / configuration process Installation of the Configuration SoftwareActivating Bootp 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 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 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