1 # str910-eval eval board
4 reset_config trst_and_srst
6 # FIXME use some standard target config, maybe create one from this
8 # source [find target/...cfg]
10 if { [info exists CHIPNAME] } {
11 set _CHIPNAME $CHIPNAME
16 if { [info exists ENDIAN] } {
22 if { [info exists FLASHTAPID] } {
23 set _FLASHTAPID $FLASHTAPID
25 set _FLASHTAPID 0x04570041
27 jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
30 if { [info exists CPUTAPID] } {
31 set _CPUTAPID $CPUTAPID
33 set _CPUTAPID 0x25966041
35 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
37 if { [info exists BSTAPID] } {
40 set _BSTAPID 0x1457f041
42 jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID
44 set _TARGETNAME $_CHIPNAME.cpu
45 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME
46 $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1
48 $_TARGETNAME configure -event reset-init {
49 # We can increase speed now that we know the target is halted.
53 # PFQBC enabled / DTCM & AHB wait-states disabled
56 str9x flash_config 0 4 2 0 0x80000
57 flash protect 0 0 7 off
60 #flash bank str9x <base> <size> 0 0 <target#> <variant>
61 set _FLASHNAME $_CHIPNAME.flash0
62 flash bank $_FLASHNAME str9x 0x00000000 0x00080000 0 0 0
63 set _FLASHNAME $_CHIPNAME.flash1
64 flash bank $_FLASHNAME str9x 0x00080000 0x00008000 0 0 0