1 source [find target/swj-dp.tcl]
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists ENDIAN] } {
19 if { [info exists M3_JTAG_TAPID] } {
20 set _M3_JTAG_TAPID $M3_JTAG_TAPID
22 set _M3_JTAG_TAPID 0x4ba00477
25 swj_newdap $_CHIPNAME m3 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_M3_JTAG_TAPID
27 set _TARGETNAME $_CHIPNAME.m3
28 target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME
31 # if srst is not fitted use SYSRESETREQ to
32 # perform a soft reset
33 cortex_m reset_config sysresetreq