2 # lm3s icdi pseudo target
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 # Work-area is a space in RAM used for flash programming
13 if { [info exists WORKAREASIZE] } {
14 set _WORKAREASIZE $WORKAREASIZE
16 set _WORKAREASIZE 0x4000
20 # possible value are hla_jtag
21 # currently swd is not supported
23 transport select hla_jtag
25 # do not check id as icdi currently does not support it
26 hla newtap $_CHIPNAME cpu -expected-id 0
28 set _TARGETNAME $_CHIPNAME.cpu
29 target create $_TARGETNAME hla_target -chain-position $_TARGETNAME
31 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
33 # flash configuration ... autodetects sizes, autoprobed
34 flash bank $_CHIPNAME.flash stellaris 0 0 0 0 $_TARGETNAME