; bdiGDB configuration file for the MGT5200 evaluation board ; ---------------------------------------------------------- ; ; dBug is used to setup the target. ; dBug has to present in the boot flash ; ; [INIT] ; init core register ;WREG MSR 0x00001002 ;MSR : ME,RI ; define maximal transfer size TSZ4 0xFF800000 0xFFFFFFFF ;ROM space TSZ4 0xF0000000 0xF0003FFF ;internal registers ; define the valie 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 0xFF800000 0xFFFFFFFF ;ROM space [TARGET] CPUTYPE 5200 ;the CPU type JTAGCLOCK 0 ;use 16 MHz JTAG clock WORKSPACE 0x00000000 ;workspace for fast download and cache flush STARTUP STOP 3000 WAKEUP 2000 ;give reset time to complete MEMDELAY 4000 ;additional memory access delay [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 [FLASH] CHIPTYPE AM29F ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16) CHIPSIZE 0x80000 ;The size of one flash chip in bytes (e.g. AM29F040 = 0x80000) BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32) ;FILE E:\cygwin\home\bdidemo\mpc4200\dbug5200.bin ;FORMAT BIN 0xFFF00000 ;FILE E:\cygwin\home\bdidemo\mpc4200\mgt5200.cfg ;FORMAT BIN 0x00000000 ;ERASE 0xFFF00000 ;erase sector 0 of flash ;ERASE 0xFFF10000 ;erase sector 1 of flash ;ERASE 0xFFF20000 ;erase sector 2 of flash ;ERASE 0xFFF30000 ;erase sector 3 of flash ;ERASE 0xFFF40000 ;erase sector 4 of flash ;ERASE 0xFFF50000 ;erase sector 5 of flash ;ERASE 0xFFF60000 ;erase sector 6 of flash ;ERASE 0xFFF70000 ;erase sector 7 of flash [REGS] DMM1 0xF0000000 ;dBug remaps IPIB to 0xF0000000 FILE E:\cygwin\home\bdidemo\mpc4200\reg5200.def