stm32l0|l1: don't corrupt RCC registers
[fw/openocd] / tcl / target / stm32l1.cfg
index 054fa9b74f64667d5093f8ebbaef6e0b8a6899f9..0933151a0e9bf2feb80fb45c2533ac3907ac270d 100644 (file)
@@ -73,10 +73,10 @@ proc stm32l_enable_HSI {} {
        echo "STM32L: Enabling HSI"
 
        # Set HSION in RCC_CR
-       mww 0x40023800 0x00000101
+       mmw 0x40023800 0x00000101 0
 
        # Set HSI as SYSCLK
-       mww 0x40023808 0x00000001
+       mmw 0x40023808 0x00000001 0
 
        # Increase JTAG speed
        adapter_khz 2000