X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tcl%2Fboard%2Fat91rm9200-dk.cfg;h=f484fded1f78faf5c6b6b83c44817a9844426bc6;hb=804eefc25954465a35e63abc272862169dbf4b9b;hp=900ee351d1167127c72620b77a3b3b6e8dbf3fae;hpb=dbbc9c41f7db210b0a4e226540a28e0a8a5019bf;p=openocd.git diff --git a/tcl/board/at91rm9200-dk.cfg b/tcl/board/at91rm9200-dk.cfg index 900ee351d1..f484fded1f 100644 --- a/tcl/board/at91rm9200-dk.cfg +++ b/tcl/board/at91rm9200-dk.cfg @@ -5,18 +5,22 @@ # # It has atmel at91rm9200 chip. source [find target/at91rm9200.cfg] + +reset_config trst_and_srst + $_TARGETNAME configure -event gdb-attach { reset init } $_TARGETNAME configure -event reset-init { at91rm9200_dk_init } -#flash bank -flash_bank cfi 0x10000000 0x00200000 2 2 0 +#flash bank +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME proc at91rm9200_dk_init { } { # Try to run at 1khz... Yea, that slow! # Chip is really running @ 32khz - jtag_khz 8 - + adapter_khz 8 + mww 0xfffffc64 0xffffffff ## disable all clocks but system clock mww 0xfffffc04 0xfffffffe @@ -37,14 +41,14 @@ proc at91rm9200_dk_init { } { mww 0xfffffc30 0x202 ## Sleep some - (go read) sleep 100 - + #======================================== # CPU now runs at 180mhz # SYS runs at 60mhz. - jtag_khz 40000 + adapter_khz 40000 #======================================== - - + + ## set memc for all memories mww 0xffffff60 0x02 ## program smc controller @@ -55,7 +59,7 @@ proc at91rm9200_dk_init { } { mww 0xffffff80 0x02 ## touch sdram chip to make it work mww 0x20000000 0 - ## sdram controller mode register + ## sdram controller mode register mww 0xffffff90 0x04 mww 0x20000000 0 mww 0x20000000 0