Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Klipper3d/klipper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD4SK <konstantin.vogel@gmx.net>2022-10-20 22:59:38 +0300
committerKevin O'Connor <kevin@koconnor.net>2022-10-22 03:29:12 +0300
commit00191b5cc4c626c61ff45afa1949e3977547909e (patch)
treed7e8a38d77d7836c4e1f1da2299666c2029a0cac
parent0d9b2cc1fa297b9adedb14be31a8d5c8d7868681 (diff)
stm32: Enable instruction and data cache on stm32h7
Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
-rw-r--r--src/stm32/stm32h7.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm32/stm32h7.c b/src/stm32/stm32h7.c
index 056f7be29..d24d07b7f 100644
--- a/src/stm32/stm32h7.c
+++ b/src/stm32/stm32h7.c
@@ -148,6 +148,9 @@ clock_setup(void)
;
}
+ SCB_EnableICache();
+ SCB_EnableDCache();
+
// Set flash latency according to clock frequency (pg.159)
uint32_t flash_acr_latency = (CONFIG_CLOCK_FREQ > 450000000) ?
FLASH_ACR_LATENCY_4WS : FLASH_ACR_LATENCY_2WS;