; bdiGDB configuration file for Alchemy Pb1000 board ; -------------------------------------------------- ; [INIT] ; WCP0 12 0x00000000 ;disable interrupts ; ; Setup Static Bus Controller WM32 0xB4001000 0x00000000 ;RCS0 Configuration WM32 0xB4001008 0x11F83FE0 ;RCS0 Address WM32 0xB4001010 0x00000000 ;RCS1 Configuration WM32 0xB4001014 0x0002018A ;RCS1 Timing WM32 0xB4001018 0x11803E40 ;RCS1 Address ; ; Setup SDRAM Controller WM32 0xB4000004 0x00552229 ;CS1 mode configuration WM32 0xB4000008 0x00552229 ;CS2 mode configuration WM32 0xB4000010 0x001003F8 ;CS1 address, 32MB at 0x00000000 WM32 0xB4000014 0x001023F8 ;CS2 address, 32MB at 0x02000000 WM32 0xB4000018 0x74000C30 ;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 0x76000C30 ;Enable refresh WM32 0xB4000028 0x00000023 ;CS1 set mode WM32 0xB400002C 0x00000023 ;CS2 set mode ; ; Setup TLB WTLB 0x00000600 0x01F80017 ;System Flash 2 x 4MB, uncached DVG ; ; Invalidate Caches IVIC 4 128 ;Invalidate IC, 4 way, 128 sets IVDC 4 128 ;Invalidate DC, 4 way, 128 sets ; ; ; switch to little endian ;WM32 0xB1900038 0x00000001 ;SYS_ENDIAN set little endian ;RM32 0xB1900038 ;SYS_ENDIAN a read is required ;RCP0 16 ;read Config0 ;WCP0 16 0x80008083 ;write Config0 ; [TARGET] ;CLOCK 0 ;BDI2000: JTAG clock 16MHz CLOCK 1 ;BDI3000: JTAG clock 16MHz CPUTYPE AU1000 ;the used target CPU type ENDIAN BIG ;target is big endian RESET JTAG ;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 REGLIST STD CP0 ;send also CP0 registers to GDB [HOST] IP 151.120.25.119 FILE E:\cygwin\home\bdidemo\mips\fibo.x FORMAT ELF ;FILE E:\cygwin\home\bdidemo\mips\vmlinus ;FORMAT ELF LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT Au1000> [FLASH] [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