1 # Script for luminary lm3s3748
3 # NB! work in progress! Duplicated from lm3s811.cfg, but does
4 # it need modification??
6 if { [info exists CHIPNAME] } {
7 set _CHIPNAME $CHIPNAME
12 if { [info exists ENDIAN] } {
15 # this defaults to a little endian
19 if { [info exists CPUTAPID ] } {
20 set _CPUTAPID $CPUTAPID
22 # force an error till we get a good number
23 set _CPUTAPID 0xffffffff
32 #lm3s3748 Evaluation Board has only srst
33 reset_config srst_only
36 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
39 # the luminary variant causes a software reset rather than asserting SRST
40 # this stops the debug registers from being cleared
41 # this will be fixed in later revisions of silicon
42 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
43 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
45 # 8k working area at base of ram
46 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
49 flash bank stellaris 0 0 0 0 0