diff --git a/stmhal/system_stm32.c b/stmhal/system_stm32.c index 3e7e1bc6897b73062a69e0c025a2bbaf83358eb3..22c917adcb33a9d69f29ee7a63720eeb5c73a157 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 +}