]> git.sur5r.net Git - openocd/blob - tcl/target/lm3s6965.cfg
rename jtag_nsrst_delay as adapter_nsrst_delay
[openocd] / tcl / target / lm3s6965.cfg
1 # TI/Luminary Stellaris lm3s6965
2
3 if { [info exists CHIPNAME] } {
4    set  _CHIPNAME $CHIPNAME
5 } else {
6    set  _CHIPNAME lm3s6965
7 }
8
9 if { [info exists CPUTAPID ] } {
10    set _CPUTAPID $CPUTAPID
11 } else {
12    set _CPUTAPID 0x3ba00477
13 }
14
15 # jtag speed
16 adapter_khz 500
17
18 adapter_nsrst_delay 100
19 jtag_ntrst_delay 100
20
21 #LM3S6965 Evaluation Board has only srst
22 reset_config srst_only
23
24 #jtag scan chain
25 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
26
27 # the luminary variant causes a software reset rather than asserting SRST
28 # this stops the debug registers from being cleared
29 # this will be fixed in later revisions of silicon
30 set _TARGETNAME $_CHIPNAME.cpu
31 target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
32
33 # 8k working area at base of ram, not backed up
34 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
35
36 #flash configuration
37 set _FLASHNAME $_CHIPNAME.flash
38 flash bank $_FLASHNAME stellaris 0 0 0 0 $_TARGETNAME