diff options
-rw-r--r-- | platforms/stm32/f4.yaml | 7 | ||||
-rw-r--r-- | rcc/flash.cpp | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/platforms/stm32/f4.yaml b/platforms/stm32/f4.yaml index 5325d92..d2d8a28 100644 --- a/platforms/stm32/f4.yaml +++ b/platforms/stm32/f4.yaml @@ -12,6 +12,13 @@ origin: 0x08000000 size: 1M +- match: + mem: i + mem: + flash: + origin: 0x08000000 + size: 2M + - mem: ram: origin: 0x20000000 diff --git a/rcc/flash.cpp b/rcc/flash.cpp index c20b618..0f46cf0 100644 --- a/rcc/flash.cpp +++ b/rcc/flash.cpp @@ -9,9 +9,9 @@ void flash_init() { #elif defined(STM32F4) // Set flash latency. - FLASH.ACR = 0x105; + FLASH.ACR = 0x107; - while(FLASH.ACR != 0x105); + while(FLASH.ACR != 0x107); #elif defined(STM32F0) || defined(STM32L0) |