; bdiGDB configuration file for PXA270 Board ; ------------------------------------------ ; ; [INIT] WCP15 0x010F 0x00002001 ;Enable CP0 and CP13 access ; ; setup GPIO ; WM32 0x40E00018 0x00008800 ;GPSR0 WM32 0x40E0001C 0x03cf0002 ;GPSR1 WM32 0x40E00020 0x0021FC00 ;GPSR2 WM32 0x40E00118 0x00000000 ;GPSR3 WM32 0x40E00024 0x00000000 ;GPCR0 WM32 0x40E00028 0x00000000 ;GPCR1 WM32 0x40E0002C 0x00000000 ;GPCR2 WM32 0x40E00124 0x00000000 ;GPCR3 WM32 0x40E0000C 0xc27b9c04 ;GPDR0 WM32 0x40E00010 0x00efaa83 ;GPDR1 WM32 0x40E00014 0x0E23FC00 ;GPDR2 WM32 0x40E0010C 0x001E1F81 ;GPDR3 WM32 0x40E00054 0x94f00000 ;GAFR0_L WM32 0x40E00058 0x015a859a ;GAFR0_H WM32 0x40E0005C 0x999a955a ;GAFR1_L WM32 0x40E00060 0x0005A4AA ;GAFR1_H WM32 0x40E00064 0x6aa00000 ;GAFR2_L WM32 0x40E00068 0x55a8a41a ;GAFR2_H WM32 0x40F00004 0x00000030 ;PSSR WM32 0x40F00008 0x5040ffff ;PSPR ; ; setup memory controller ; ; setup Flash and Sram ; See page 73-74 of Dev Kit WM32 0x48000008 0x39f2a7c3 ;MSC0 RM32 0x48000008 WM32 0x4800000C 0x0000A691 ;MSC1 RM32 0x4800000C WM32 0x48000010 0x0000B884 ;MSC2 RM32 0x48000010 WM32 0x48000014 0x00000001 ;MECR WM32 0x48000028 0x0001c391 ;MCMEM0 WM32 0x4800002C 0x0001c391 ;MCMEM1 WM32 0x48000030 0x0001c391 ;MCATT0 WM32 0x48000034 0x0001c391 ;MCATT1 WM32 0x48000038 0x0001c391 ;MCIO0 WM32 0x4800003C 0x0001c391 ;MCIO1 WM32 0x48000020 0x00000000 ;FLYCNFG ; ; setup SDRAM ; see page 71 dev kit WM32 0x48000004 0x23ca401e ;MDREFR WM32 0x48000004 0x20ca201e ;MDREFR WM32 0x4800001C 0x40044004 ;SXCNFG WM32 0x48000004 0x204b201e ;MDREFR RM32 0x48000004 WM32 0x48000004 0x200b201e ;MDREFR RM32 0x48000004 WM32 0x48000004 0x200ba01e ;MDREFR RM32 0x48000004 WM32 0x48000000 0x00000AC8 ;MDCNFG RM32 0x48000000 WM32 0x48000000 0x00000AC9 ;MDCNFG RM32 0x48000000 DELAY 20 ; ; 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 192.168.1.158 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