mips_ejtag.c: do not set v2.6 ECR bits on v2.0 devices
[openocd.git] / tcl / target / k60.cfg
bloba368e0b26dad73161ca6a8e24ab5e4a544ec02dc
2 # Freescale Kinetis K60 devices
6 # K60 devices support both JTAG and SWD transports.
8 source [find target/swj-dp.tcl]
10 if { [info exists CHIPNAME] } {
11     set _CHIPNAME $CHIPNAME
12 } else {
13     set _CHIPNAME k60
16 if { [info exists ENDIAN] } {
17     set _ENDIAN $ENDIAN
18 } else {
19     set _ENDIAN little
22 if { [info exists CPUTAPID] } {
23     set _CPUTAPID $CPUTAPID
24 } else {
25     set _CPUTAPID 0x4ba00477
28 set _TARGETNAME $_CHIPNAME.cpu
30 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
32 target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
34 $_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
35 $_CHIPNAME.cpu configure -event examine-end { puts "END..." ; }
37 if {![using_hla]} {
38    # if srst is not fitted use SYSRESETREQ to
39    # perform a soft reset
40    cortex_m reset_config sysresetreq