Skip to content

Commit c6f1d47

Browse files
committed
stmhal: Enable I & D caches for M7
1 parent 3179d23 commit c6f1d47

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

stmhal/system_stm32.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,13 @@ void SystemClock_Config(void)
316316
RCC->DCKCFGR2 = 0;
317317
#endif
318318
}
319+
320+
void HAL_MspInit(void) {
321+
#if defined(MCU_SERIES_F7)
322+
/* Enable I-Cache */
323+
SCB_EnableICache();
324+
325+
/* Enable D-Cache */
326+
SCB_EnableDCache();
327+
#endif
328+
}

0 commit comments

Comments
 (0)