2 # Freescale Kinetis Kx series devices
5 source [find target/swj-dp.tcl]
7 if { [info exists CHIPNAME] } {
8 set _CHIPNAME $CHIPNAME
13 if { [info exists ENDIAN] } {
19 if { [info exists CPUTAPID] } {
20 set _CPUTAPID $CPUTAPID
23 set _CPUTAPID 0x4ba00477
25 set _CPUTAPID 0x2ba01477
29 set _TARGETNAME $_CHIPNAME.cpu
31 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
33 target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
35 reset_config srst_nogate
38 # if srst is not fitted use SYSRESETREQ to
39 # perform a soft reset
40 cortex_m reset_config sysresetreq