; bdiGDB configuration for SMDK6400 (ARM1176) ; ------------------------------------------- ; ; Remove jumper J503 so TRST and RESET are not connected togehter. ; SMDK6400 drives RESET with a push-pull driver into the JTAG debug connector. ; In order to prevent driver contention, select RESET NONE. ; To reset the system, use the nRESET button, Telnet reset has no effect. ; ; The values used to configure the memory controller ; are the ones the boot ROM uses to setup my board. ; Your system may need different ones !!! ; [INIT] ; WM32 0x7e004000 0x00000000 ;WTCON: Watch Dog_Disable WM32 0x7e00f120 0x00000000 ;MEM_SYS_CFG: WM32 0x7e00f900 0x00018fde ;OTHERS: taken from boot ROM code WM32 0x7e00f01c 0x00000000 ;CLK_SRC: select FIN as clock source WM32 0x7e00f000 0x0000ffff ;APLL_LOCK: WM32 0x7e00f004 0x0000ffff ;MPLL_LOCK: WM32 0x7e00f020 0x01077310 ;CLK_DIV0: WM32 0x7e00f00c 0x81900302 ;APLL_CON: WM32 0x7e00f010 0x81900303 ;MPLL_CON: DELAY 100 ;let PLL lock WM32 0x7e00f01c 0x00000003 ;CLK_SRC: select PLL as clock source CLOCK 2 ;speed-up JTAG clock ; WM32 0x70000000 0x00000001 ;SROM_BW: Bank0 16-bit WM32 0x70000004 0x00070000 ;SROM_BC0: 8 access cycles ; WM32 0x7e001004 0x00000004 ;P1MEMCCMD: Configure WM32 0x7e001010 0x0000030b ;P1REFRESH: WM32 0x7e001014 0x00000006 ;P1CASLAT: WM32 0x7e001018 0x00000001 ;P1T_DQSS: WM32 0x7e00101c 0x00000002 ;P1T_MRD: WM32 0x7e001020 0x00000005 ;P1T_RAS: WM32 0x7e001024 0x00000007 ;P1T_RC: WM32 0x7e001028 0x00000003 ;P1T_RCD: WM32 0x7e00102c 0x000000a8 ;P1T_RFC: WM32 0x7e001030 0x00000003 ;P1T_RP: WM32 0x7e001034 0x00000002 ;P1T_RRD WM32 0x7e001038 0x00000002 ;P1T_WR WM32 0x7e00103c 0x00000002 ;P1T_WTR WM32 0x7e001040 0x00000002 ;P1T_XP WM32 0x7e001044 0x0000000c ;P1T_XSR WM32 0x7e001048 0x0000000c ;P1T_ESR WM32 0x7e00100c 0x80010012 ;P1MEMCFG: WM32 0x7e00104c 0x00000b45 ;P1MEMCFG2: WM32 0x7e001200 0x000150f8 ;P1CHIP0CFG: WM32 0x7e001008 0x000c0000 ;P1DIRECTCMD: Nop WM32 0x7e001008 0x00000000 ;P1DIRECTCMD: Precharge all WM32 0x7e001008 0x00040000 ;P1DIRECTCMD: Autorefresh WM32 0x7e001008 0x00040000 ;P1DIRECTCMD: Autorefresh WM32 0x7e001008 0x00080032 ;P1DIRECTCMD: MRS WM32 0x7e001008 0x000a0000 ;P1DIRECTCMD: EMRS WM32 0x7e001004 0x00000000 ;P1MEMCCMD: Go ; [TARGET] CPUTYPE ARM1176 CLOCK 2 4 ;JTAG clock : start with 1 MHz then use 8 MHz POWERUP 1000 ;start delay after power-up detected in ms WAKEUP 100 ;wait after reset released RESET NONE ;!!! SMDK6400 has push-pull driver on reset :( ;!!! Press reset button on board ;!!! Telnet reset has no effect ENDIAN LITTLE ;memory model (LITTLE | BIG) VECTOR CATCH 0x001f ;catch D_Abort, P_Abort, SWI, Undef and Reset ;VECTOR CATCH 0x0000 ;do not catch any vector ;VECTOR CATCH 0x0444 ;catch SMC,IRQ,SVC BREAKMODE SOFT ;SOFT or HARD ;DCC 7 ;DCC I/O via TCP port 7 ; SCANPRED 0 0 ;no JTAG devices before the ARM1176 SCANSUCC 1 4 ;the ETMBUF after the ARM1176 core [HOST] IP 151.120.25.119 FILE E:/temp/dump1024k.bin FORMAT BIN 0x50000000 PROMPT SMDK6400> [FLASH] ; Flash is Am29LV800BB [REGS] FILE $regS3C6400.def