X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Flpc17xx.cfg;h=c81971f93e615b05ed73e4401f32122e709be20c;hp=01a8cd3785e8e33c3fcd735d337759e5ff4e4052;hb=refs%2Fchanges%2F42%2F1542%2F19;hpb=4bff54ccf455fbdfd2bdf9aa371c79f267d486d9 diff --git a/tcl/target/lpc17xx.cfg b/tcl/target/lpc17xx.cfg index 01a8cd3785..c81971f93e 100644 --- a/tcl/target/lpc17xx.cfg +++ b/tcl/target/lpc17xx.cfg @@ -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,