1 # Script for luminary lm3s*
3 # Change the default telnet port...
6 # Port for TCL connection.
12 # GDB can also flash my flash!
14 gdb_flash_program enable
15 gdb_breakpoint_override hard
19 #ft2232_device_desc "LM3S811 Evaluation Board A"
20 ft2232_layout evb_lm3s811
21 ft2232_vid_pid 0x0403 0xbcd9
24 if { [info exists CHIPNAME] } {
25 set _CHIPNAME $CHIPNAME
30 if { [info exists ENDIAN] } {
33 # this defaults to a little endian
37 if { [info exists CPUTAPID ] } {
38 set _CPUTAPID $CPUTAPID
40 # force an error till we get a good number
41 set _CPUTAPID 0xffffffff
50 #LM3S811 Evaluation Board has only srst
51 reset_config srst_only
54 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
56 # the luminary variant causes a software reset rather than asserting SRST
57 # this stops the debug registers from being cleared
58 # this will be fixed in later revisions of silicon
59 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
60 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
62 # 8k working area at base of ram
63 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
66 flash bank stellaris 0 0 0 0 0