]> git.sur5r.net Git - openocd/blobdiff - tcl/target/lpc17xx.cfg
cmsis-dap: add initial cmsis-dap support
[openocd] / tcl / target / lpc17xx.cfg
index 01a8cd3785e8e33c3fcd735d337759e5ff4e4052..c81971f93e615b05ed73e4401f32122e709be20c 100644 (file)
@@ -49,10 +49,6 @@ if { [info exists CPUROMSIZE] } {
        error "_CPUROMSIZE not set. Please do not include lpc17xx.cfg directly, but the specific chip configuration file (lpc1751.cfg, lpc1764.cfg, etc)."
 }
 
-#delays on reset lines
-adapter_nsrst_delay 200
-jtag_ntrst_delay 200
-
 #jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
 
@@ -74,6 +70,12 @@ flash bank $_FLASHNAME lpc2000 0x0 $_CPUROMSIZE 0 0 $_TARGETNAME \
 # we have no idea what clock the target is running at.
 adapter_khz 10
 
+# delays on reset lines
+adapter_nsrst_delay 200
+if {$using_jtag} {
+ jtag_ntrst_delay 200
+}
+
 $_TARGETNAME configure -event reset-init {
        # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
        # "User Flash Mode" where interrupt vectors are _not_ remapped,