From c6f1d47dcbce16efa77a5732f96b0afe74bd1c09 Mon Sep 17 00:00:00 2001 From: Dave Hylands <dhylands@gmail.com> Date: Sat, 15 Aug 2015 10:27:35 -0700 Subject: [PATCH] stmhal: Enable I & D caches for M7 --- stmhal/system_stm32.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stmhal/system_stm32.c b/stmhal/system_stm32.c index 3e7e1bc68..22c917adc 100644 --- a/stmhal/system_stm32.c +++ b/stmhal/system_stm32.c @@ -316,3 +316,13 @@ void SystemClock_Config(void) RCC->DCKCFGR2 = 0; #endif } + +void HAL_MspInit(void) { +#if defined(MCU_SERIES_F7) + /* Enable I-Cache */ + SCB_EnableICache(); + + /* Enable D-Cache */ + SCB_EnableDCache(); +#endif +} -- GitLab