Download bdiGDB User Manual
Transcript
bdiGDB for GNU Debugger, BDI2000 (MIPS32) User Manual 21 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 .. 31 value the value to write into the register Example: WGPR 0 5 WCP0 register value Write value to the selected Coprocessor 0 register. register the register number 0 .. 31, add 0x0n00 for Select n value the value to write into the register Example: WCP0 13 0x00000000 ;Clear Cause Register RCP0 register Read the selected Coprocessor 0 register. register the register number 0 .. 31, add 0x0n00 for Select n Example: RCP0 16 ; Read Config0 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 RM8 address value Read a byte (8bit) from the selected memory place. address the memory address Example: RM8 0x00000000 RM16 address value Read a half word (16bit) from the selected memory place. address the memory address Example: RM16 0x00000000 RM32 address value Read a word (32bit) from the selected memory place. address the memory address Example: RM32 0x00000000 © Copyright 1997-2006 by ABATRON AG Switzerland V 1.10