bdi
GDB
for GNU Debugger, BDI2000 (ARM)
User Manual
24
© Copyright 1997-2005 by ABATRON AG Switzerland
V 1.17
3.2.1 Part [INIT]
The part [INIT] defines a list of commands which should be executed every time the target comes out
of reset. 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
WCP15 register value
Write value to the selected Coprocessor 15 register.
register
the register number (see chapter CP15 registers)
value
the value to write into the register
Example: WCP15 2 0x00004000 ; set Translation Base Address
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
WBIN address filename
Write a binary image to the selected memory place. The binary image is
read via TFTP from the host. Up to 4 such entries are supported.
address
the memory address
filename
the filename including the full path
Example:
WBIN 0x4000 pagetable.bin