]> git.sur5r.net Git - openocd/blob - src/tcl/target/lm3s6965.cfg
Move TCL script files -- Step 1 of 2:
[openocd] / src / tcl / target / lm3s6965.cfg
1 # script for luminary lm3s6965
2
3
4 if { [info exists CHIPNAME] } { 
5    set  _CHIPNAME $CHIPNAME    
6 } else {         
7    set  _CHIPNAME lm3s6965
8 }
9
10 if { [info exists ENDIAN] } {   
11    set  _ENDIAN $ENDIAN    
12 } else {         
13   # this defaults to a little endian
14    set  _ENDIAN little
15 }
16
17 if { [info exists CPUTAPID ] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20   # force an error till we get a good number
21    set _CPUTAPID 0x3ba00477
22 }
23
24 # jtag speed
25 jtag_khz 500
26
27 jtag_nsrst_delay 100
28 jtag_ntrst_delay 100
29
30 #LM3S6965 Evaluation Board has only srst
31 reset_config srst_only
32
33 #jtag scan chain
34 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
35
36 # the luminary variant causes a software reset rather than asserting SRST
37 # this stops the debug registers from being cleared
38 # this will be fixed in later revisions of silicon
39 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
40 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
41
42 # 4k working area at base of ram
43 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
44
45 #flash configuration
46 flash bank stellaris 0 0 0 0 0