; bdiGDB configuration file for CSB226 Flash programming ; ------------------------------------------------------ ; ; When programming over the vectors at 0x00000000 make sure ; the alternate vector table at 0xffff0000 is active. ; ; [INIT] WCP15 0x010F 0x00002001 ;Enable CP0 and CP13 access WCP15 0x0001 0x00002078 ;Use exception vectors at 0xffff0000 ; ; setup memory controller WM32 0x48000008 0x2ef15af0 ; MSC0 WM32 0x4800000C 0x00003ff4 ; MSC1 ;WM32 0x48000008 0x2ef025d0 ;MSC0 ;WM32 0x4800000C 0x3f643f64 ;MSC1 ;WM32 0x48000010 0x00003f60 ;MSC2 ; WM32 0x48000004 0x03ca4fff ;MDREF : chip default WM32 0x48000004 0x03ca4030 ;MDREF : REF Rate = (64MS/4096 Rows)/32 = 48 WM32 0x48000004 0x03cf6030 ;MDREF : Set Clock Run Bits WM32 0x48000004 0x038f6030 ;MDREF : Clear Self Refresh WM32 0x48000004 0x038ff030 ;MDREF : Set E0PIN and E1PIN WM32 0x48000000 0x09a809a8 ;MDCNFG : don't enable just yet DELAY 20 WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0xA0000000 0xA0000000 ;access SDRAM WM32 0x48000000 0x09a909a9 ;MDCNFG : now enable SDRAM WM32 0x48000040 0x00220022 ;MDMRS : and do a MRS ; ; [TARGET] CPUTYPE PXA250 ;the target CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock POWERUP 2000 ;start delay after power-up detected in ms TRST PUSHPULL ;TRST driver type (OPENDRAIN | PUSHPULL) RESET 100 ;reset time (ms) DBGHANDLER 0xFFFF0800 ;debug handler base address ENDIAN LITTLE ;memory model (LITTLE | BIG) BREAKMODE HARD ;SOFT or HARD VTABLO 0xFFFFFFFF ;Do not update low vector table VTABHI 0xFFFFFFFF ;Do not update high vector table WAKEUP 500 [HOST] IP 151.120.25.119 PROMPT PROG226> [FLASH] WORKSPACE 0xA0000000 ;workspace in target RAM for fast programming algorithm CHIPTYPE STRATAX16 ;Flash type CHIPSIZE 0x1000000 ;The size of one flash chip in bytes BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE E:\cygwin\home\bdidemo\xscale\csb226\u-boot.bin FORMAT BIN 0x00000000 ERASE 0x00000000 UNLOCK 1000 ERASE 0x00040000 ERASE 0x00080000 ERASE 0x000C0000 [REGS] FILE $regPXA250.def