; bdiGDB configuration file for PXA270 Board -- Written By Fahd Abidi Ultimate Solutions ; ------------------------------------------ ; ; Before Starting please configure the following switches as shown for Flash on Mainboard: ; SW8=DOT ; SW7=NODOT ; ; USE following Setting for Processor Flash, You will also have to make some changes to the ; MSC0 register writes as shown below ; SW8=DOT ; SW7=DOT ; [INIT] WCP15 0x010F 0x00002001 ;Enable CP0 and CP13 access ; ; setup GPIO ; WM32 0x40E00018 0x00008000 ;CPSR0 WM32 0x40E0001C 0x00FF0002 ;GPSR1 WM32 0x40E00020 0x0001C000 ;GPSR2 WM32 0x40E00024 0x00602800 ;GPCR0 WM32 0x40E00028 0x00000380 ;GPCR1 WM32 0x40E0002C 0x00000000 ;GPCR2 WM32 0x40E0000C 0x0060A800 ;GPDR0 WM32 0x40E00010 0x00FF0382 ;GPDR1 WM32 0x40E00014 0x0001C000 ;GPDR2 WM32 0x40E00054 0x98400000 ;GAFR0_L WM32 0x40E00058 0x00002950 ;GAFR0_H WM32 0x40E0005C 0x000A9558 ;GAFR1_L WM32 0x40E00060 0x0005AAAA ;GAFR1_H WM32 0x40E00064 0xA0000000 ;GAFR2_L WM32 0x40E00068 0x00000002 ;GAFR2_H WM32 0x40F00004 0x00000030 ;PSSR ; ; setup memory controller ; ; setup Flash and Sram ; See page 73-74 of Dev Kit ;WM32 0x48000008 0x7FF0B8F2 ;MSC0 32-bit Processor Flash on nCS0 @0x00000000, (SW7=DOT, SW8=DOT 32bits) (NON-MCP Version). WM32 0x48000008 0x7FF0B8FA ;MSC0 32-bit Processor Flash on nCS0 @0x00000000, (SW7=DOT, SW8=DOT 32bits) (MCP Version). WM32 0x4800000C 0x0000CCD1 ;MSC1 32-bit Flash on nCS1 @0x04000000 WM32 0x48000010 0x00003884 ;MSC2 for SRAM @ 0x0A000000 see page 47 of DEV kit ; ; setup SDRAM ; see page 71 dev kit WM32 0x48000004 0x2093A01E ;MDREFR WM32 0x48000000 0x00000AC8 ;MDCNFG (NON-MCP Version) WM32 0x48000000 0x00002BCC ;MDCNFG (MCP Version) WM32 0x48000058 0x0000C008 ;MDMRSLP WM32 0x48000040 0 ;MDMRS ; [TARGET] CPUTYPE PXA270 ;the target CPU type JTAGCLOCK 0 ;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 [HOST] IP 151.120.25.119 FILE E:\cygwin\home\bdidemo\xscale\vxworks FORMAT BIN 0xA0020000 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 0x0A000000 FILE E:\cygwin\home\bdidemo\xscale\vxworks 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