diff --git a/hw/bsp/imxrt/family.c b/hw/bsp/imxrt/family.c index fc6e9e266..ecd18bad3 100644 --- a/hw/bsp/imxrt/family.c +++ b/hw/bsp/imxrt/family.c @@ -55,6 +55,12 @@ const uint8_t dcd_data[] = { 0x00 }; void board_init(void) { + // make sure the dcache is on. +#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT + if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR)) + SCB_EnableDCache(); +#endif + // Init clock BOARD_BootClockRUN(); SystemCoreClockUpdate();