Marcel Jost <marcel.jost@bfh.ch>:
[fw/openocd] / tcl / target / lm3s9b9x.cfg
1 #
2 # Luminary Micro Stellaris LM3S9B9x Microcontroller
3 #
4 # http://www.luminarymicro.com/products/lm3s9b90.html
5 # http://www.luminarymicro.com/products/lm3s9b92.htm
6 #
7
8 if { [info exists CHIPNAME] } { 
9    set  _CHIPNAME $CHIPNAME    
10 } else {         
11    set  _CHIPNAME lm3s9b9x
12 }
13
14 if { [info exists ENDIAN] } {   
15    set  _ENDIAN $ENDIAN    
16 } else {         
17   # this defaults to a little endian
18    set  _ENDIAN little
19 }
20
21 if { [info exists CPUTAPID ] } {
22    set _CPUTAPID $CPUTAPID
23 } else {
24    # forth generation Tempest device
25    set _CPUTAPID 0x4ba00477
26 }
27
28 #jtag scan chain
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
30
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
34
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
37
38 #flash configuration
39 flash bank stellaris 0 0 0 0 0