; bdiGDB configuration file for PXA270 Board ; ------------------------------------------ ; ; [INIT] WCP15 0x010F 0x00002001 ;Enable CP0 and CP13 access ; ; setup GPIO ; WM32 0x40E00018 0x00008004 ;CPSR0 WM32 0x40E0001C 0x00020080 ;GPSR1 WM32 0x40E00020 0x16C14000 ;GPSR2 WM32 0x40E00118 0x0003E000 ;GPSR3 WM32 0x40E00024 0x00000000 ;GPCR0 WM32 0x40E00028 0x00000380 ;GPCR1 WM32 0x40E0002C 0x00000000 ;GPCR2 WM32 0x40E00124 0x00000000 ;GPCR3 WM32 0x40E0000C 0xCFE3BDE4 ;GPDR0 WM32 0x40E00010 0x003FAB81 ;GPDR1 WM32 0x40E00014 0x1EC3FC00 ;GPDR2 WM32 0x40E0010C 0x018FFE8F ;GPDR3 WM32 0x40E00054 0x84400000 ;GAFR0_L WM32 0x40E00058 0xA5000510 ;GAFR0_H WM32 0x40E0005C 0x000A9558 ;GAFR1_L WM32 0x40E00060 0x0005A1AA ;GAFR1_H WM32 0x40E00064 0x60000000 ;GAFR2_L WM32 0x40E00068 0x00000802 ;GAFR2_H WM32 0x40F00004 0x00000030 ;PSSR ; ; setup memory controller ; ; setup Flash and Sram ; See page 73-74 of Dev Kit WM32 0x48000008 0x23F2B8F2 ;MSC0 RM32 0x48000008 WM32 0x4800000C 0x0000CCD1 ;MSC1 RM32 0x4800000C WM32 0x48000010 0x0000B884 ;MSC2 RM32 0x48000010 WM32 0x48000014 0x00000001 ;MECR WM32 0x48000028 0x00000000 ;MCMEM0 WM32 0x4800002C 0x00000000 ;MCMEM1 WM32 0x48000030 0x00000000 ;MCATT0 WM32 0x48000034 0x00000000 ;MCATT1 WM32 0x48000038 0x00000000 ;MCIO0 WM32 0x4800003C 0x00000000 ;MCIO1 ; ; setup SDRAM ; see page 71 dev kit WM32 0x48000004 0x2013A01E ;MDREFR WM32 0x48000000 0x00000AC9 ;MDCNFG (NON-MCP Version) DELAY 20 ; step 5 ; step 7 - Trigger 8 SDRAM refresh cycles - errata 116 - first access is ignored 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 RM32 0xA0000000 ;read SDRAM WM32 0x48000040 0x00000000 ;MDMRS ; ; WGPR 11 0xA3000020 ;set frame pointer to free RAM WM32 0xA3000020 0xA3000028 ;dummy stack frame for GDB ;Unlock Flash ;WM32 0x00000000 0x00600060 ;unlock block 0 ;WM32 0x00000000 0x00D000D0 ;WM32 0x00020000 0x00600060 ;unlock block 1 ;WM32 0x00020000 0x00D000D0 [TARGET] CPUTYPE PXA270 ;the target CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock POWERUP 2000 ;start delay after power-up detected in ms DBGHANDLER 0xFFFF0800 ;debug handler base address ENDIAN LITTLE ;memory model (LITTLE | BIG) BREAKMODE SOFT ;SOFT or HARD ;VTABLO 0xFFFFFFFF ;Do not update low vector table ;VTABHI 0xe59ff3d8 ;Use fixed vectors "ldr pc, [pc, #3d8]" WAKEUP 500 ;VECTOR CATCH 0x02 [HOST] IP 10.0.1.206 PROMPT mainstone-> LOAD MANUAL ;load code code MANUAL or AUTO after reset ; ; Depending on SW7 position you can use the flash on the mainboard or the flash on the processor card ; Set SW7=NODOT to use the MainBoard Flash ; [FLASH] 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) ;WORKSPACE 0x5c000000 WORKSPACE 0xA1000000 FILE u-boot.bin FORMAT BIN 0x00000000 ERASE 0x00000000 ;erase sector 0 ;ERASE 0x00040000 ;erase sector 1 ;ERASE 0x00080000 ;erase sector 2 ;ERASE 0x000C0000 ;erase sector 3 ;ERASE 0x00100000 ;erase sector 4 ;ERASE 0x00140000 ;erase sector 5 ;ERASE 0x00180000 ;erase sector 6 ;ERASE 0x001C0000 ;erase sector 7 ; To erase all 256 sectors use following command from BDI Telnet Prompt: ;"Core#0>erase 0x00000000 0x40000 255" [REGS] FILE $regPXA270.def