bdi
GDB
for GNU Debugger, BDI2000 (ARM)
User Manual
5
© Copyright 1997-2005 by ABATRON AG Switzerland
V 1.17
1.2 BDI Configuration
As an initial setup, the IP address of the BDI2000, the IP address of the host with the configuration
file and the name of the configuration file is stored within the flash of the BDI2000.
Every time the BDI2000 is powered on, it reads the configuration file via TFTP.
Following an example of a typical configuration file:
; bdiGDB configuration file for ARM PID7T board
; ---------------------------------------------
;
[INIT]
WM32
0x0B000020
0x00000000 ; Clear Reset Map
;
[TARGET]
CPUTYPE
ARM7TDMI
CLOCK
1
;JTAG clock (0=Adaptive, 1=8MHz, 2=4MHz,...)
ENDIAN
LITTLE
;memory model (LITTLE | BIG)
VECTOR
CATCH
;catch unhandled exceptions
BDIMODE
AGENT
;the BDI working mode (LOADONLY | AGENT)
BREAKMODE
SOFT
;SOFT or HARD
;
[HOST]
IP
151.120.25.100
FILE
E:\cygnus\root\usr\demo\arm\myapp
FORMAT
COFF
LOAD
MANUAL
;<AGENT> load application MANUAL or AUTO after reset
[FLASH]
WORKSPACE 0x00000000 ;workspace in target RAM for fast programming algorithm
CHIPTYPE AM29F ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16)
CHIPSIZE 0x20000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000)
BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32)
FILE E:\cygnus\root\usr\demo\arm\boot.hex ;The file to program
ERASE 0x04000000 ;erase sector 0 of flash in U12 (AM29F010)
ERASE 0x04004000 ;erase sector 1 of flash
ERASE 0x04008000 ;erase sector 2 of flash
ERASE 0x0400C000 ;erase sector 3 of flash
ERASE 0x04010000 ;erase sector 4 of flash
ERASE 0x04014000 ;erase sector 5 of flash
ERASE 0x04018000 ;erase sector 6 of flash
ERASE 0x0401C000 ;erase sector 7 of flash
Based on the information in the configuration file, the target is automatically initialized after every re-
set.