; bdiGDB configuration using Scratchpad Memory as workspace ; --------------------------------------------------------- ; ; This example shows how to use the Scratchpad memory as ; workpace for flash programming. To use the Scratchpad as ; workpsace it is necessary to enable the MMU. ; The MSG RAM is used for the MMU Translation Table. ; ; The board used was a IXDP2351 board (64MB flash, 8-bit mode). ; [INIT] WCP15 0x0001 0x000000F8 ; Set big endian mode WCP15 0x0005 0x0 WCP15 0x010F 0x00002001 ;Enable CP0 and CP13 access ; WM32 0xc4000000 0xbfff3c43 ; Flash writes 8-bit mode WM32 0xc4000004 0xbfff3c43 ; Flash writes 8-bit mode WM32 0xc4000008 0xbfff3c43 ; Flash writes 8-bit mode WM32 0xc400000c 0xbfff3c43 ; Flash writes 8-bit mode ; WM32 0x88600000 0x00000800 ; Enable MSG SRAM ; ; setup MMU table WM32 0x88000000 0x00040c02 ; 16MB CS0 flash area WM32 0x88000004 0x00040c02 ; Map 00000000 to 0_00000000 WM32 0x88000008 0x00040c02 ; Strongly ordered WM32 0x8800000c 0x00040c02 WM32 0x88000010 0x00040c02 WM32 0x88000014 0x00040c02 WM32 0x88000018 0x00040c02 WM32 0x8800001c 0x00040c02 WM32 0x88000020 0x00040c02 WM32 0x88000024 0x00040c02 WM32 0x88000028 0x00040c02 WM32 0x8800002c 0x00040c02 WM32 0x88000030 0x00040c02 WM32 0x88000034 0x00040c02 WM32 0x88000038 0x00040c02 WM32 0x8800003c 0x00040c02 ; WM32 0x88000040 0x01040c02 ; 16MB CS1 flash area WM32 0x88000044 0x01040c02 ; Map 01000000 to 0_01000000 WM32 0x88000048 0x01040c02 ; Strongly ordered WM32 0x8800004c 0x01040c02 WM32 0x88000050 0x01040c02 WM32 0x88000054 0x01040c02 WM32 0x88000058 0x01040c02 WM32 0x8800005c 0x01040c02 WM32 0x88000060 0x01040c02 WM32 0x88000064 0x01040c02 WM32 0x88000068 0x01040c02 WM32 0x8800006c 0x01040c02 WM32 0x88000070 0x01040c02 WM32 0x88000074 0x01040c02 WM32 0x88000078 0x01040c02 WM32 0x8800007c 0x01040c02 ; WM32 0x88000080 0x02040c02 ; 16MB CS2 flash area WM32 0x88000084 0x02040c02 ; Map 02000000 to 0_02000000 WM32 0x88000088 0x02040c02 ; Strongly ordered WM32 0x8800008c 0x02040c02 WM32 0x88000090 0x02040c02 WM32 0x88000094 0x02040c02 WM32 0x88000098 0x02040c02 WM32 0x8800009c 0x02040c02 WM32 0x880000a0 0x02040c02 WM32 0x880000a4 0x02040c02 WM32 0x880000a8 0x02040c02 WM32 0x880000ac 0x02040c02 WM32 0x880000b0 0x02040c02 WM32 0x880000b4 0x02040c02 WM32 0x880000b8 0x02040c02 WM32 0x880000bc 0x02040c02 ; WM32 0x880000c0 0x03040c02 ; 16MB CS3 flash area WM32 0x880000c4 0x03040c02 ; Map 03000000 to 0_03000000 WM32 0x880000c8 0x03040c02 ; Strongly ordered WM32 0x880000cc 0x03040c02 WM32 0x880000d0 0x03040c02 WM32 0x880000d4 0x03040c02 WM32 0x880000d8 0x03040c02 WM32 0x880000dc 0x03040c02 WM32 0x880000e0 0x03040c02 WM32 0x880000e4 0x03040c02 WM32 0x880000e8 0x03040c02 WM32 0x880000ec 0x03040c02 WM32 0x880000f0 0x03040c02 WM32 0x880000f4 0x03040c02 WM32 0x880000f8 0x03040c02 WM32 0x880000fc 0x03040c02 ; WM32 0x88003280 0xca140c02 ; scrach area WM32 0x88003284 0xca140c02 ; Map ca000000 to 1_ca000000 WM32 0x88003288 0xca140c02 ; Strongly ordered WM32 0x8800328c 0xca140c02 WM32 0x88003290 0xca140c02 WM32 0x88003294 0xca140c02 WM32 0x88003298 0xca140c02 WM32 0x8800329c 0xca140c02 WM32 0x880032a0 0xca140c02 WM32 0x880032a4 0xca140c02 WM32 0x880032a8 0xca140c02 WM32 0x880032ac 0xca140c02 WM32 0x880032b0 0xca140c02 WM32 0x880032b4 0xca140c02 WM32 0x880032b8 0xca140c02 WM32 0x880032bc 0xca140c02 ; WCP15 0x0002 0x88000000 ; set TTB WCP15 0x0003 0xffffffff ; Set DAC WCP15 0x0001 0x000018F9 ; enable MMU, BTB & IC WCP15 0x0708 0 ; invalidate I & D TLB ; [TARGET] CPUTYPE IXP2350 ;the target CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock ENDIAN BIG ;memory model (LITTLE | BIG) VECTOR CATCH 0x1E ;trap Abort, SWI, Undef [HOST] IP ???.???.???.??? PROMPT IXP2300> [FLASH] WORKSPACE 0xca000000 CHIPTYPE STRATAX8 ;Flash type 8-bit mode CHIPSIZE 0x2000000 ;The size of one flash chip in bytes BUSWIDTH 8 ;The width of the flash memory bus 8-bit mode