7321cb8ac7679dfe557656a9f8bf3174ebce7a02
[fw/openocd] / src / tcl / target / lm3s3748.cfg
1 # Script for luminary lm3s3748
2 #
3 # NB! work in progress! Duplicated from lm3s811.cfg, but does
4 # it need modification??
5
6 if { [info exists CHIPNAME] } { 
7    set  _CHIPNAME $CHIPNAME    
8 } else {         
9    set  _CHIPNAME lm3s3748
10 }
11
12 if { [info exists ENDIAN] } {   
13    set  _ENDIAN $ENDIAN    
14 } else {         
15   # this defaults to a little endian
16    set  _ENDIAN little
17 }
18
19 if { [info exists CPUTAPID ] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22   # force an error till we get a good number
23    set _CPUTAPID 0x3ba00477
24 }
25
26 # RCLK 
27 jtag_khz 500
28
29 jtag_nsrst_delay 100
30 jtag_ntrst_delay 100
31
32 #lm3s3748 Evaluation Board has only srst
33 reset_config srst_only
34
35 #jtag scan chain
36 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id $_CPUTAPID
37
38
39 # the luminary variant causes a software reset rather than asserting SRST
40 # this stops the debug registers from being cleared
41 # this will be fixed in later revisions of silicon
42 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
43 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME -variant lm3s
44
45 # 8k working area at base of ram
46 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 0x2000 -work-area-backup 0
47
48 #flash configuration
49 flash bank stellaris 0 0 0 0 0