]> git.sur5r.net Git - openocd/blob - tcl/target/stellaris_icdi.cfg
bcm281xx: Add bcm281xx SoC and bcm28155_ap board
[openocd] / tcl / target / stellaris_icdi.cfg
1 #
2 # lm3s icdi pseudo target
3 #
4
5 if { [info exists CHIPNAME] } {
6    set _CHIPNAME $CHIPNAME
7 } else {
8    set _CHIPNAME lm3s
9 }
10
11 # Work-area is a space in RAM used for flash programming
12 # By default use 16kB
13 if { [info exists WORKAREASIZE] } {
14    set _WORKAREASIZE $WORKAREASIZE
15 } else {
16    set _WORKAREASIZE 0x4000
17 }
18
19 #
20 # possible value are hla_jtag
21 # currently swd is not supported
22 #
23 transport select hla_jtag
24
25 # do not check id as icdi currently does not support it
26 hla newtap $_CHIPNAME cpu -expected-id 0
27
28 set _TARGETNAME $_CHIPNAME.cpu
29 target create $_TARGETNAME hla_target -chain-position $_TARGETNAME
30
31 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
32
33 # flash configuration ... autodetects sizes, autoprobed
34 flash bank $_CHIPNAME.flash stellaris 0 0 0 0 $_TARGETNAME