diff --git a/ports/mimxrt/board_init.c b/ports/mimxrt/board_init.c index 0d8e58f1de2b0..eee5b578715b9 100644 --- a/ports/mimxrt/board_init.c +++ b/ports/mimxrt/board_init.c @@ -52,7 +52,9 @@ void board_init(void) { SCB_EnableICache(); // Init clock BOARD_BootClockRUN(); + #if FSL_CLOCK_DRIVER_VERSION >= MAKE_VERSION(2, 5, 1) CLOCK_SetMode(kCLOCK_ModeRun); + #endif SystemCoreClockUpdate(); // Enable IOCON clock