1 # Config for Texas Instruments SoC CC32xx family
3 source [find target/swj-dp.tcl]
7 source [find target/icepick.cfg]
9 if { [info exists CHIPNAME] } {
10 set _CHIPNAME $CHIPNAME
18 if { [info exists DAP_TAPID] } {
19 set _DAP_TAPID $DAP_TAPID
22 set _DAP_TAPID 0x4BA00477
24 set _DAP_TAPID 0x2BA01477
29 jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -disable
30 jtag configure $_CHIPNAME.dap -event tap-enable "icepick_c_tapenable $_CHIPNAME.jrc 0"
32 swj_newdap $_CHIPNAME dap -expected-id $_DAP_TAPID
36 # ICEpick-C (JTAG route controller)
38 if { [info exists JRC_TAPID] } {
39 set _JRC_TAPID $JRC_TAPID
41 set _JRC_TAPID 0x0B97C02F
45 jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f -expected-id $_JRC_TAPID -ignore-version
46 jtag configure $_CHIPNAME.jrc -event setup "jtag tapenable $_CHIPNAME.dap"
52 set _TARGETNAME $_CHIPNAME.cpu
53 target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.dap