X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Fboard%2Fat91cap7a-stk-sdram.cfg;h=a0e393f2c9136b58afa60495987b884ce397de84;hp=cca12119cb1077f42149b0b69427237e82e9e9fc;hb=38ac08c1c25adf42cf20e48e10e6ddeab6a12d71;hpb=8f779cf66bf459616b7dad88e871c2f4a7315371 diff --git a/tcl/board/at91cap7a-stk-sdram.cfg b/tcl/board/at91cap7a-stk-sdram.cfg index cca12119cb..a0e393f2c9 100644 --- a/tcl/board/at91cap7a-stk-sdram.cfg +++ b/tcl/board/at91cap7a-stk-sdram.cfg @@ -15,7 +15,7 @@ if { [info exists ENDIAN] } { set _ENDIAN little } -if { [info exists CPUTAPID ] } { +if { [info exists CPUTAPID] } { set _CPUTAPID $CPUTAPID } else { set _CPUTAPID 0x40700f0f @@ -24,11 +24,11 @@ if { [info exists CPUTAPID ] } { jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID set _TARGETNAME $_CHIPNAME.cpu -target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi +target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME $_TARGETNAME configure -event reset-start { # start off real slow when we're running off internal RC oscillator - jtag_khz 10 + adapter speed 32 } proc peek32 {address} { @@ -76,6 +76,10 @@ $_TARGETNAME configure -event reset-init { wait_state {expr {([peek32 0xFFFFFC68] & 0x8) == 0}} echo "Master clock ok." + + # Now that we're up and running, crank up speed! + global post_reset_khz ; adapter speed $post_reset_khz + echo "Configuring the SDRAM controller..." # Configure EBI Chip select for SDRAM @@ -149,10 +153,6 @@ $_TARGETNAME configure -event reset-init { mww 0xffffef00 0x3 echo "SDRAM configuration ok." - - # Now that we're up and running, crank up speed! - global post_reset_khz - jtag_khz $post_reset_khz } $_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0