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

Page 24
Image 24
Albatron Technology ARM11/Cortex-A8 user manual Part Init