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