This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1004

-- gerrit

commit 7586bb147256b4cd1a0ce5f35e9f95a0daeeeaa4
Author: Spencer Oliver <[email protected]>
Date:   Tue Dec 4 11:32:49 2012 +0000

    cfg: enable stlink stm32l HSI
    
    Switch to using the internal HSI when a reset init is called, this also
    matches the std stm32l cfg.
    
    Read (verify) speed is increased from 17 to 120 KiB/s.
    
    Change-Id: Ic94ba85949ffdefa17b7be45eef14e30f941d107
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/tcl/target/stm32lx_stlink.cfg b/tcl/target/stm32lx_stlink.cfg
index f9211d2..ed9865d 100644
--- a/tcl/target/stm32lx_stlink.cfg
+++ b/tcl/target/stm32lx_stlink.cfg
@@ -18,3 +18,18 @@ source [find target/stm32_stlink.cfg]
 
 set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME stm32lx 0 0 0 0 $_TARGETNAME
+
+proc stm32l_enable_HSI {} {
+       # Enable HSI as clock source
+       echo "STM32L: Enabling HSI"
+
+       # Set HSION in RCC_CR
+       mww 0x40023800 0x00000101
+
+       # Set HSI as SYSCLK
+       mww 0x40023808 0x00000001
+}
+
+$_TARGETNAME configure -event reset-init {
+       stm32l_enable_HSI
+}

-- 

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to