]> git.sur5r.net Git - openocd/commitdiff
tcl/target/stm32l: restore slow clock on reset
authorPaul Fertser <fercerpav@gmail.com>
Mon, 23 Jun 2014 12:32:54 +0000 (16:32 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 10 Jul 2014 21:18:45 +0000 (21:18 +0000)
Change-Id: I63eafaa38b188fe50c13ab966be44a3eaa2006b0
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2188
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/target/stm32l.cfg

index 5d6a53e0b95cdcc8283425c1e219ec8c87763974..37bd50512fa9c2f26c5c306c2cc382c87d259a8c 100644 (file)
@@ -27,7 +27,7 @@ if { [info exists WORKAREASIZE] } {
 
 # JTAG speed should be <= F_CPU/6.
 # F_CPU after reset is 2MHz, so use F_JTAG max = 333kHz
-adapter_khz 100
+adapter_khz 300
 
 adapter_nsrst_delay 100
 if {[using_jtag]} {
@@ -89,3 +89,6 @@ $_TARGETNAME configure -event reset-init {
        stm32l_enable_HSI
 }
 
+$_TARGETNAME configure -event reset-start {
+       adapter_khz 300
+}