2 # Luminary Micro Stellaris LM3S9B9x Microcontroller
4 # http://www.luminarymicro.com/products/lm3s9b90.html
5 # http://www.luminarymicro.com/products/lm3s9b92.htm
8 if { [info exists CHIPNAME] } {
9 set _CHIPNAME $CHIPNAME
11 set _CHIPNAME lm3s9b9x
14 if { [info exists ENDIAN] } {
17 # this defaults to a little endian
21 if { [info exists CPUTAPID ] } {
22 set _CPUTAPID $CPUTAPID
24 # forth generation Tempest device
25 set _CPUTAPID 0x4ba00477
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
31 #Cortex-M3 with Luminary lm3s variant
32 set _TARGETNAME $_CHIPNAME.cpu
33 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
35 # 16k working area at base of ram
36 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x4000 -work-area-backup 0
39 flash bank stellaris 0 0 0 0 0