2 # Spansion FM4 (ARM Cortex-M4)
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 source [find target/swj-dp.tcl]
13 if { [info exists CPUTAPID] } {
14 set _CPU_TAPID $CPUTAPID
15 } elseif { [using_jtag] } {
16 set _CPU_TAPID 0x4ba00477
18 set _CPU_TAPID 0x2ba01477
21 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
22 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
24 set _TARGETNAME $_CHIPNAME.cpu
25 target create $_TARGETNAME cortex_m -endian little -dap $_CHIPNAME.dap
30 cortex_m reset_config sysresetreq