Allow transports to override the selected target (hla configs unification)
[fw/openocd] / tcl / target / lpc11uxx.cfg
index 6968fcd8789739bd8954556ee7859a988b5e115e..2a519fbc7f20daea9a8c4791960b822a78ef2e13 100644 (file)
@@ -43,6 +43,8 @@ $_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE
 #set _FLASHNAME $_CHIPNAME.flash
 #flash bank $_FLASHNAME lpc2000 0 0 0 0 $_TARGETNAME
 
-# if srst is not fitted use SYSRESETREQ to
-# perform a soft reset
-cortex_m reset_config sysresetreq
+if {![using_hla]} {
+   # if srst is not fitted use SYSRESETREQ to
+   # perform a soft reset
+   cortex_m reset_config sysresetreq
+}