]> git.sur5r.net Git - openocd/blobdiff - tcl/target/imx35.cfg
TCL scripts: replace "puts" with "echo"
[openocd] / tcl / target / imx35.cfg
index b899084fdbfc3f593688c28010b839c1cf0c8878..8a6aa87027b9cf5e25876abe0010834f7ca47c9b 100644 (file)
@@ -2,6 +2,7 @@
 #
 
 reset_config trst_and_srst srst_gates_jtag
+jtag_ntrst_delay 100
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
@@ -46,5 +47,9 @@ jtag newtap $_CHIPNAME smda -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
 
-proc power_restore {} { puts "Sensed power restore. No action." }
-proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }
+proc power_restore {} { echo "Sensed power restore. No action." }
+proc srst_deasserted {} { echo "Sensed nSRST deasserted. No action." }
+
+# trace setup ... NOTE, "normal full" mode fudges the real ETMv3.1 mode
+etm config $_TARGETNAME 16 normal full etb
+etb config $_TARGETNAME $_CHIPNAME.etb