flash: New Spansion FM4 flash driver
[openocd.git] / tcl / target / cc32xx.cfg
blobff654502455d3540b858727f64775ac0ee358629
1 # Config for Texas Instruments SoC CC32xx family
3 source [find target/swj-dp.tcl]
5 adapter_khz 100
7 source [find target/icepick.cfg]
9 if { [info exists CHIPNAME] } {
10    set _CHIPNAME $CHIPNAME
11 } else {
12    set _CHIPNAME cc32xx
16 # Main DAP
18 if { [info exists DAP_TAPID] } {
19    set _DAP_TAPID $DAP_TAPID
20 } else {
21    if {[using_jtag]} {
22       set _DAP_TAPID 0x4BA00477
23    } else {
24       set _DAP_TAPID 0x2BA01477
25    }
28 if {[using_jtag]} {
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"
31 } else {
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
40 } else {
41    set _JRC_TAPID 0x0B97C02F
44 if {[using_jtag]} {
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"
50 # Cortex M3 target
52 set _TARGETNAME $_CHIPNAME.cpu
53 target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.dap