tcl/target/stm32f4: fix: reduce adapter speed before reset
[fw/openocd] / tcl / target / stm32f4x.cfg
index c7f6ee8179ddc9416c7617803595a59be8983860..7205c461486e4f152348a8bceb21dc6afa40a120 100644 (file)
@@ -120,3 +120,8 @@ $_TARGETNAME configure -event reset-init {
        # Boost JTAG frequency
        adapter_khz 8000
 }
+
+$_TARGETNAME configure -event reset-start {
+       # Reduce speed since CPU speed will slow down to 16MHz with the reset
+       adapter_khz 2000
+}