2 # Infineon XMC1100/XMC1200/XMC1300 family (ARM Cortex-M0 @ 32 MHz)
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
12 # Only SWD and SPD supported
14 source [find target/swj-dp.tcl]
16 if { [info exists CPUTAPID] } {
17 set _CPU_SWD_TAPID $CPUTAPID
19 set _CPU_SWD_TAPID 0x0BB11477
22 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_SWD_TAPID
23 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
25 set _TARGETNAME $_CHIPNAME.cpu
26 target create $_TARGETNAME cortex_m -endian little -dap $_CHIPNAME.dap
28 if { [info exists WORKAREASIZE] } {
29 set _WORKAREASIZE $WORKAREASIZE
31 set _WORKAREASIZE 0x4000
34 $_TARGETNAME configure -work-area-phys 0x20000000 \
35 -work-area-size $_WORKAREASIZE \
38 set _FLASHNAME $_CHIPNAME.flash
39 flash bank $_FLASHNAME xmc1xxx 0x10000000 0 0 0 $_TARGETNAME