1 # str910-eval eval board
4 reset_config trst_and_srst
6 if { [info exists CHIPNAME] } {
7 set _CHIPNAME $CHIPNAME
12 if { [info exists ENDIAN] } {
18 if { [info exists FLASHTAPID ] } {
19 set _FLASHTAPID $FLASHTAPID
21 # Fixme with a correct number!
22 set _FLASHTAPID 0xFFFFFFFF
24 jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0xfe -expected-id $_FLASHTAPID
27 if { [info exists CPUTAPID ] } {
28 set _CPUTAPID $CPUTAPID
30 set _CPUTAPID 0x25966041
32 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xe -expected-id $_CPUTAPID
34 if { [info exists BSTAPID ] } {
37 set _BSTAPID 0xFFFFFFFF
39 jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1e -expected-id $_BSTAPID
41 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
42 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
43 $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1
45 flash bank str9xpec 0x00000000 0x00080000 0 0 0
47 str9xpec enable_turbo 0
48 str9xpec options_read 0
49 str9xpec options_cmap 0 bank 1
50 str9xpec options_write 0