From af609f0b5186d163f30908d7c83f432340f0acc4 Mon Sep 17 00:00:00 2001 From: Anubhav Raina Date: Mon, 13 Dec 2021 00:11:37 +0530 Subject: [PATCH] skip d-cache enable in RAMCODE --- ports/stm32h7/boards.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/stm32h7/boards.c b/ports/stm32h7/boards.c index 62561f3fc..e01098793 100644 --- a/ports/stm32h7/boards.c +++ b/ports/stm32h7/boards.c @@ -8,7 +8,9 @@ void board_init(void) { SCB_EnableICache(); +#ifndef RAMCODE SCB_EnableDCache(); +#endif __HAL_RCC_SYSCFG_CLK_ENABLE(); clock_init(); SystemCoreClockUpdate();