tcl/target/stm32l: restore slow clock on reset

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>
This commit is contained in:
Paul Fertser 2014-06-23 16:32:54 +04:00 committed by Spencer Oliver
parent 48d2431968
commit 333df54fb7
1 changed files with 4 additions and 1 deletions

View File

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