From: Uwe Bonnes Date: Tue, 18 Nov 2014 14:30:44 +0000 (+0300) Subject: tcl/target/stm32f4: ramp up JTAG speed, HSI is 16MHz there X-Git-Tag: v0.9.0-rc1~218 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9c4d2946548f72d77f103b978ab30501d5953f04 tcl/target/stm32f4: ramp up JTAG speed, HSI is 16MHz there Since all F4 parts have an internal HSI providing 16MHz, it's safe to use 2MHz JTAG frequency by default. Change-Id: I2702d5a1d642d4acd4af2db54c028949132c6900 Signed-off-by: Uwe Bonnes Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2383 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index ecd39de77c..a7ec5eab3e 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -73,13 +73,13 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME -# JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz +# JTAG speed should be <= F_CPU/6. F_CPU after reset is 16MHz, so use F_JTAG = 2MHz # # Since we may be running of an RC oscilator, we crank down the speed a # bit more to be on the safe side. Perhaps superstition, but if are # running off a crystal, we can run closer to the limit. Note # that there can be a pretty wide band where things are more or less stable. -adapter_khz 1000 +adapter_khz 2000 adapter_nsrst_delay 100 if {[using_jtag]} {