1 # script for luminary lm3s6965
4 if { [info exists CHIPNAME] } {
5 set _CHIPNAME $CHIPNAME
10 if { [info exists ENDIAN] } {
13 # this defaults to a little endian
17 if { [info exists CPUTAPID ] } {
18 set _CPUTAPID $CPUTAPID
20 # force an error till we get a good number
21 set _CPUTAPID 0x3ba00477
30 #LM3S6965 Evaluation Board has only srst
31 reset_config srst_only
34 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
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
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
46 flash bank stellaris 0 0 0 0 0