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 disable
15 gdb_breakpoint_override soft
19 #ft2232_device_desc "LM3S811 Evaluation Board A"
20 ft2232_layout evb_lm3s811
21 ft2232_vid_pid 0x0403 0xbcd9
24 if { [info exists CHIPNAME] }
26 set _CHIPNAME $CHIPNAME
32 if { [info exists ENDIAN] }
37 # this defaults to a little endian
41 if { [info exists CPUTAPID ] }
43 set _CPUTAPID $CPUTAPID
46 # force an error till we get a good number
47 set _CPUTAPID 0xffffffff
56 #LM3S811 Evaluation Board has only srst
57 reset_config srst_only
60 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
62 # the luminary variant causes a software reset rather than asserting SRST
63 # this stops the debug registers from being cleared
64 # this will be fixed in later revisions of silicon
65 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
66 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
68 # 8k working area at base of ram
69 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
72 flash bank stellaris 0 0 0 0 0