2 # Infineon XMC4100/XMC4200/XMC4400/XMC4500 family (ARM Cortex-M4 @ 80-120 MHz)
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 source [find target/swj-dp.tcl]
16 if { [info exists CPU_JTAG_TAPID] } {
17 set _CPU_JTAG_TAPID $CPU_JTAG_TAPID
19 set _CPU_JTAG_TAPID 0x4BA00477
25 if { [info exists CPU_SWD_TAPID] } {
26 set _CPU_SWD_TAPID $CPU_SWD_TAPID
28 set _CPU_SWD_TAPID 0x2BA01477
32 set _CPU_TAPID $_CPU_JTAG_TAPID
34 set _CPU_TAPID $_CPU_SWD_TAPID
37 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
39 set _TARGETNAME $_CHIPNAME.cpu
40 target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
43 cortex_m reset_config sysresetreq