bdi
Wind
for Tornado™, BDI2000 (MPC8xx/MPC5xx)
User Manual
5
© Copyright 1997-2007 by ABATRON AG Switzerland
V 1.38
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:
; bdiWind configuration file for MPC860ADS board
; ----------------------------------------------
;
[INIT]
; init core register
WSPR 638 0x02200000 ;IMMR : internal memory at 0x02200000
WSPR 158 0x00000007 ;ICTRL:
; init SIU register
WM32 0x02200000 0x01632440 ;SIUMCR
WM32 0x02200004 0xFFFFFF88 ;SYPCR
WM16 0x02200200 0x0002 ;TBSCR
WM16 0x02200220 0x0102 ;RTCSC
WM16 0x02200240 0x0002 ;PTSCR
; init UPM
SUPM 0x02200168 0x0220017c ;set address for MCR and MDR
WUPM 0x00000000 0x8FFFEC24 ;UPMA single read
WUPM 0x00000001 0x0FFFEC04
WUPM 0x00000002 0x0CFFEC04
WUPM 0x00000003 0x00FFEC04
..........
WUPM 0x0000003C 0x33FFCC07 ;UPMA exception
WUPM 0x0000003D 0xFFFFFFFF
WUPM 0x0000003E 0xFFFFFFFF
WUPM 0x0000003F 0xFFFFFFFF
; init memory controller
WM32 0x02200104 0xFFE00D34 ;OR0 : 2MB, all accesses, 6ws, time relax
WM32 0x0220010C 0xFFFF8110 ;OR1
WM32 0x02200114 0xFFC00800 ;OR2
WM32 0x02200100 0x02800001 ;BR0
WM32 0x02200108 0x02100001 ;BR1
WM32 0x02200110 0x00000081 ;BR2
WM16 0x0220017A 0x0400 ;MPTPR : divide by 16
WM32 0x02200170 0x13A01114 ;MAMR
[TARGET]
CPUCLOCK 25000000 ;the CPU clock rate after processing the init list
BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT | GATEWAY)
BREAKMODE SOFT ;<AGENT> SOFT or HARD, HARD uses PPC hardware breakpoints
MEMBASE 0 ;<AGENT> base of target memory
MEMSIZE 0x400000 ;<AGENT> size of target memory
POOLBASE 0x300000 ;<AGENT> base of host controlled target memory
POOLSIZE 0x100000 ;<AGENT> size of host controlled target memory
[HOST]
IP 151.120.25.100
FILE F:\TornadoPPC\target\config\860agent\vxworks
FORMAT ELF
LOAD AUTO ;<AGENT> load VxWorks code MANUAL or AUTO after reset
DEBUGPORT 0x4321
Based on the information in the configuration file, the target is automatically initialized after every re-
set.