; bdiGDB configuration file for the Lite5200 evaluation board ; ----------------------------------------------------------- ; 16MB Flash, 64MB SDRAM ; [INIT] ; init core register WREG MSR 0x00001002 ;MSR : ME,RI WM32 0x80000000 0x0000f000 ;MBAR : internal registers at 0xf0000000 WSPR 311 0xf0000000 ;MBAR : save internal register offset WSPR 279 0xf0000000 ;SPRG7: save internal memory offsetReg: 279 ; ; init memory controller WM32 0xf0000004 0x0000ff00 ;CS0 start = 0xff000000 WM32 0xf0000008 0x0000ffff ;CS0 stop = 0xffffffff WM32 0xf0000054 0x00010001 ;CSE: enable CS0, disable CSBOOT WM32 0xf0000300 0x00047800 ;BOOT ctrl ; ; enable SDRAM CS WM32 0xf0000034 0x00000019 ;SDRAM CS0, 64MB @ 0x00000000 WM32 0xf0000038 0x04000000 ;SDRAM CS1, disabled @ 0x04000000 ;WM32 0xf0000b00 0x80000000 ;GPIO Enable CS1 ; ; init SDRAM controller WM32 0xf0000108 0xd2322800 ;SDRAM Config 1 WM32 0xf000010c 0x8ad70000 ;SDRAM Config 2 WM32 0xf0000104 0xd14f0000 ;SDRAM Control WM32 0xf0000104 0xd14f0002 ;SDRAM Control: precharge all WM32 0xf0000104 0xd14f0004 ;SDRAM Control: refresh WM32 0xf0000104 0xd14f0004 ;SDRAM Control: refresh WM32 0xf0000100 0x00cd0000 ;SDRAM Mode WM32 0xf0000104 0x514f0000 ;SDRAM Control: Lock Mode Register ; ; define maximal transfer size ;TSZ4 0xFF800000 0xFFFFFFFF ;ROM space TSZ4 0xF0000000 0xF0003FFF ;internal registers ; ; define the valid memory map MMAP 0x00000000 0x03FFFFFF ;Memory range for SDRAM MMAP 0xF0000000 0xF0003FFF ;Memory map for Internal Register MMAP 0xF0008000 0xF000BFFF ;Memory map for On-chip SRAM MMAP 0xFF000000 0xFFFFFFFF ;ROM space [TARGET] CPUTYPE 5200 ;the CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock ;WORKSPACE 0x00000000 ;workspace for fast download WORKSPACE 0xF0008000 ;workspace for fast download WAKEUP 1000 ;give reset time to complete MEMDELAY 2000 ;additional memory access delay ;BOOTADDR 0x100 [HOST] IP 151.120.25.119 FILE E:\cygwin\home\bdidemo\mpc4200\fibo.exe FORMAT ELF LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT 5200> [FLASH] CHIPTYPE AM29F ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16) CHIPSIZE 0x00800000 ;The size of one flash chip in bytes BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32) WORKSPACE 0xF0008000 ;workspace in internal SRAM FILE E:\cygwin\home\bdidemo\mpc4200\icecube5200.bin FORMAT BIN 0xFF800000 ERASE 0xFF800000 ;erase a sector of flash ERASE 0xFF810000 ;erase a sector of flash ERASE 0xFF820000 ;erase a sector of flash [REGS] ;FILE E:\cygwin\home\bdidemo\mpc4200\reg5200.def FILE $reg5200.def