; Generic bdiGDB configuration file for NOR flash programming ; ----------------------------------------------------------- ; ; To use it for your system you have modify: ; - OR0/BR0 (depends on your flash memory system) ; - RCW (make sure you use the correct RCW for your system) ; - CHIPTYPE (see flash list: http://www.abatron.ch/products/debugger-support/gnu-support.html) ; - CHIPSIZE (the size of one flash chip in bytes) ; - BUSWIDTH ; ; For faster programming you may setup some RAM ; and use it as a WORKSPACE in the [FLASH] section. ; If your processor has internal static RAM the use this one. ; Otherwise you have to setup DDR SDRAM via the [INIT] list ; [INIT] ; init core register WREG MSR 0x00001002 ;MSR : ME,RI ; ; Move MBAR to 0xe0000000 WM32 0xff400000 0xe0000000 ;MABR to 0xe0000000 ; ; Initialize LAWBAR's WM32 0xe0000020 0xfe000000 ;LBLAWBAR0 : Flash WM32 0xe0000024 0x80000018 ;LBLAWAR0 : 32M ; ; Setup chip selects WM32 0xe0005004 0xfe006ff7 ;OR0 : Flash 32M WM32 0xe0005000 0xfe001001 ;BR0 : Flash ; ; [TARGET] CPUTYPE 8300 ;the CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock POWERUP 2000 ;start delay after power-up detected in ms WAKEUP 500 ;give reset time to complete STARTUP RESET ;halt immediately at the boot vector ;RCW 0xB4600000 0x04040006 ;override reset configuration words ;BOOTADDR 0xfff00100 ;boot address used for start-up break ;RCW 0xB0600000 0x04040006 ;override reset configuration words ;BOOTADDR 0x00000100 ;boot address used for start-up break BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint STEPMODE HWBP ;TRACE or HWBP, HWBP uses a hardware breakpoint [HOST] PROMPT prog83xx> [FLASH] CHIPTYPE MIRRORX16 ;Flash type: Spansion S29GL256N CHIPSIZE 0x02000000 ;The size of one flash chip in bytes BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32 | 64) ;WORKSPACE 0x00001000 ;workspace in DDR RAM ;WORKSPACE 0xe0110000 ;workspace in QE Lite MultiUser RAM FILE E:\temp\uboot.bin ;(optional) FORMAT BIN 0xfe000000 ;(optional) ERASE 0xfe000000 0x20000 4 ;(optional) [REGS] FILE $reg8315e.def