; bdiGDB configuration for Motorola M9328MX1ADS board ; --------------------------------------------------- ; [INIT] ; ; Initialize DragonBall MX1 ADS Rev 0.1 board when using JTAG ; so SRAM and SDRAM are downloadable ; WM32 0x0021b000 0x2f00ac03 ;Select CLKO mux to output HCLK(BCLK) WM32 0x0021b000 0x2f008403 ;48MHz System Clock WM32 0x00220000 0x00008C00 ;CS0 - boot flash, 32 wait states, 8-bit WM32 0x00220004 0x22222601 WM32 0x00220008 0x00000a00 ;CS1 - SRAM, 10 wait states, 32-bit WM32 0x0022000c 0x11110601 WM32 0x00220020 0x00000a00 ;CS4 - External UART, 10 wait states, 8-bit WM32 0x00220024 0x11110301 ; ;Init SDRAM 16Mx16x2 IAM0 CS2 CL2 ; WM32 0x00221000 0x92120200 ;Set Precharge Command WM32 0x08200000 0x00000000 ;Issue Precharge all Command WM32 0x00221000 0xa2120200 ;Set AutoRefresh Command WM32 0x08000000 0x00000000 ;Issue AutoRefresh Command WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x08000000 0x00000000 WM32 0x00221000 0xb2120200 ;Set Mode Register WM32 0x08111800 0x00000000 ;Issue Mode Register Command, Burst Length = 8 WM32 0x00221000 0x82124200 ;Set to Normal Mode ; [TARGET] CPUTYPE ARM920T CLOCK 1 ;JTAG clock WAKEUP 750 ;because of slow rising reset line RESET HARD 100 ;beause of heavy capacitive load on reset line TRST PUSHPULL ENDIAN LITTLE ;memory model (LITTLE | BIG) BREAKMODE SOFT 0xDFFFDFFF ;SOFT or HARD, ARM / Thumb break code ;VECTOR CATCH 0x1f ;catch D_Abort, P_Abort, SWI, Undef and Reset SIO 7 115200 ;Enable SIO via TCP port 7 at 115200 ;DCC 7 ;TCP port for DCC I/O [HOST] IP 213.252.143.162 FORMAT BIN LOAD MANUAL [FLASH] CHIPTYPE AM29F ; Flash type CHIPSIZE 0x800000 ; The size of one flash chip in bytes BUSWIDTH 32 ; The width of the flash memory bus in bits (8 | 16 | 32) FORMAT BIN 0x10060000 ; Binary, to be flashed to 0x1006'0000 FILE Image ; which file to flash if no name is given to 'prog' WORKSPACE 0x09FFF000 ERASE 0x10060000 ; Erase space for kernel ERASE 0x10080000 ERASE 0x100A0000 ERASE 0x100C0000 ERASE 0x100E0000 ERASE 0x10100000 ERASE 0x10120000 ERASE 0x10140000 ERASE 0x10160000 ERASE 0x10180000 ERASE 0x101A0000 ERASE 0x101C0000 ERASE 0x101E0000