config scripts: remove useless reference to OpenOCD docs
[openocd/genbsdl.git] / tcl / board / str910-eval.cfg
blob38a1477cdac13429c2c6385c987aad99cc8012cf
1 # str910-eval eval board
3 # Need reset scripts
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
12 } else {
13    set  _CHIPNAME str912
16 if { [info exists ENDIAN] } {
17    set  _ENDIAN $ENDIAN
18 } else {
19    set  _ENDIAN little
22 if { [info exists FLASHTAPID ] } {
23    set _FLASHTAPID $FLASHTAPID
24 } else {
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
32 } else {
33    set _CPUTAPID 0x25966041
35 jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
37 if { [info exists BSTAPID ] } {
38    set _BSTAPID $BSTAPID
39 } else {
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.
50         #jtag_rclk 3000
52         # -- Enable 96K RAM
53         # PFQBC enabled / DTCM & AHB wait-states disabled
54         mww 0x5C002034 0x0191
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