; bdiGDB configuration file for Alchemy DB1100 board ; -------------------------------------------------- ; [INIT] ; ;WCP0 12 0x00000000 ;disable interrupts ; ; Setup CPU PLL to 396 MHz WM32 0xB1900060 0x00000021 ;CPU_PLL Configuration DELAY 100 ; ; Setup Endianess WM32 0xB1900038 0x00000001 ;Set to Little Endian WCP0 16 0x00000003 ; ; Setup Static Bus Controller WM32 0xB4001000 0x00000003 ;RCS0 Configuration WM32 0xB4001004 0x040181D7 ;RCS0 Timing WM32 0xB4001008 0x11E03F80 ;RCS0 Address WM32 0xB4001010 0x00000080 ;RCS1 Configuration WM32 0xB4001014 0x22080a20 ;RCS1 Timing WM32 0xB4001018 0x10c03f00 ;RCS1 Address ;WM32 0xB4001020 0x00000000 ;RCS2 Configuration ;WM32 0xB4001024 0x00000000 ;RCS2 Timing ;WM32 0xB4001028 0x00000000 ;RCS2 Address WM32 0xB4001030 0x00000002 ;RCS3 Configuration WM32 0xB4001034 0x280E3E07 ;RCS3 Timing WM32 0xB4001038 0x10000000 ;RCS3 Address ; ; Setup SDRAM Controller WM32 0xB4000000 0x005522AA ;CS0 mode configuration WM32 0xB4000004 0x005522AA ;CS1 mode configuration WM32 0xB4000008 0x00000000 ;CS2 mode configuration WM32 0xB400000C 0x001003F8 ;CS0 address, 32MB at 0x00000000 WM32 0xB4000010 0x001023F8 ;CS1 address, 32MB at 0x02000000 WM32 0xB4000014 0x00000000 ;CS2 address, WM32 0xB4000018 0x64000C24 ;Program refresh (disabled) WM32 0xB400001C 0x00000000 ;Precharge all banks WM32 0xB4000020 0x00000000 ;Issue two auto refreshes WM32 0xB4000020 0x00000000 ;Issue two auto refreshes WM32 0xB4000018 0x66000C24 ;Enable refresh WM32 0xB4000024 0x00000033 ;CS0 set mode WM32 0xB4000028 0x00000033 ;CS1 set mode WM32 0xB400002C 0x00000000 ;CS2 set mode ; [TARGET] ;CLOCK 0 ;BDI2000: JTAG clock 16MHz CLOCK 1 ;BDI3000: JTAG clock 16MHz CPUTYPE AU1000 ;the used target CPU type ENDIAN LITTLE ;target is little endian RESET HARD ;the reset type (NONE, JTAG, HARD) WORKSPACE 0xA0000080 ;workspace in target RAM for fast download BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT) BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoints STEPMODE JTAG ;JTAG, HWBP or SWBP VECTOR CATCH ;catch unhandled exceptions [HOST] IP 151.120.25.119 FILE E:\cygwin\home\bdidemo\mips\fibo.x FORMAT ELF LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT DB1100> [FLASH] ; measured programming speed 50 kBytes/sec WORKSPACE 0xA0001000; CHIPTYPE MIRRORX16 ;there is a MirrorBit flash in x16 mode ;CHIPTYPE AM29BX16 ;there is a MirrorBit flash in x16 mode CHIPSIZE 0x800000 ;the chip is Am29LV640MH BUSWIDTH 32 ;there are two chips building a 32-bit system ;FILE E:\cygwin\home\bdidemo\mips\db1100.bin ;FORMAT BIN 0xBFC80000; FILE E:\temp\dump512k.bin FORMAT BIN 0xBFC80000; ;ERASE 0xBFC80000; ;ERASE 0xBFCA0000; ;ERASE 0xBFCC0000; ;ERASE 0xBFCE0000; ERASE 0xBFC80000 0x20000 8 ;erase 8 sectors [REGS] DMM1 0xB4000000 ;memory controller base address DMM2 0xB0400000 ;interrupt controller 0 base address DMM3 0xB1800000 ;interrupt controller 1 base address FILE E:\cygwin\home\bdidemo\mips\regau1k.def