Albatron Technology ARM11/Cortex-A8 user manual Part Init

Page 24

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

User Manual 24

3.2.1 Part [INIT]

The part [INIT] defines a list of commands which are be executed every time the target comes out of reset (except in STARTUP RUN mode). The commands are used to get the target ready for loading the program file.

WGPR register value

Write value to the selected general purpose register.

 

register

the register number 0 .. 15

 

value

the value to write into the register

 

Example:

WGPR 0 5

WREG name value

Write value to the selected CPU register by name

 

name

the register name (CPSR)

 

value

the value to write into the register

 

Example:

WREG CPSR 0x600000D3

WCPn register value

Write value to the selected Coprocessor register.

 

n

the CP number (0 .. 15)

 

register

the register number (see chapter CPx registers)

 

value

the value to write into the register

 

Example:

WCP15 2 0x00004000 ; set Translation Base 0

WM8 address value

Write a byte (8bit) to the selected memory place.

 

address

the memory address

 

value

the value to write to the target memory

 

Example:

WM8 0xFFFFFA21 0x04 ; SYPCR: watchdog disable ...

WM16 address value

Write a half word (16bit) to the selected memory place.

 

address

the memory address

 

value

the value to write to the target memory

 

Example:

WM16 0x02200200 0x0002 ; TBSCR

WM32 address value

Write a word (32bit) to the selected memory place.

 

address

the memory address

 

value

the value to write to the target memory

 

Example:

WM32 0x02200000 0x01632440 ; SIUMCR

WAPB address value

Cortex-A8: Write a word (32bit) to the Debug APB memory.

 

address

the APB memory address

 

value

the value to write to the APB memory

 

Example:

WAPB 0xd4012014 0x08000014 ; RCSR

© Copyright 1997-2007 by ABATRON AG Switzerland

V 1.04

Image 24
Contents BdiGDB Installation Using bdiGDBIntroduction BDI2000 BDI ConfigurationTroubleshooting Maintenance Trademarks AppendicesIntroduction BDI2000BDI Configuration Installation Connecting the BDI2000 to TargetFor 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 DescriptionInstallation of the Configuration Software Overview of an installation / configuration processActivating 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 Example for a register definition Entry in the configuration fileRegister definition file Target setup Connecting to the targetDebugging 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