1 # Script for luminary lm3s811
3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
9 if { [info exists ENDIAN] } {
12 # this defaults to a little endian
16 if { [info exists CPUTAPID ] } {
17 set _CPUTAPID $CPUTAPID
19 # force an error till we get a good number
20 set _CPUTAPID 0x3ba00477
29 #LM3S811 Evaluation Board has only srst
30 reset_config srst_only
33 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
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
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
45 flash bank stellaris 0 0 0 0 0