Remove annoying end-of-line whitespace from tcl/* files
[fw/openocd] / tcl / target / lm3s3748.cfg
1 # TI/Luminary Stellaris lm3s3748
2
3 if { [info exists CHIPNAME] } {
4    set  _CHIPNAME $CHIPNAME
5 } else {
6    set  _CHIPNAME lm3s3748
7 }
8
9 if { [info exists CPUTAPID ] } {
10    set _CPUTAPID $CPUTAPID
11 } else {
12    set _CPUTAPID 0x3ba00477
13 }
14
15 # JTAG scan chain
16 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
17
18 # The "lm3s" variant works around an erratum when using Rev A of "DustDevil"
19 # parts (third generation, includes LM3S3748).  It keeps the debug registers
20 # from being cleared, by using software reset not SRST; NOP on newer revs.
21 set _TARGETNAME $_CHIPNAME.cpu
22 target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3s
23
24 # 8k working area at base of ram, not backed up
25 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
26
27 # flash configuration -- one bank of 128K
28 flash bank stellaris 0 0 0 0 $_TARGETNAME