diff --git a/examples/platforms/nrf52840/platform.c b/examples/platforms/nrf52840/platform.c index 0f5ba4179..f0146a0dd 100644 --- a/examples/platforms/nrf52840/platform.c +++ b/examples/platforms/nrf52840/platform.c @@ -34,6 +34,7 @@ #include +#include #include #include "platform-nrf5.h" @@ -46,6 +47,9 @@ void PlatformInit(int argc, char *argv[]) (void)argc; (void)argv; + // Enable I-code cache + NRF_NVMC->ICACHECNF = NVMC_ICACHECNF_CACHEEN_Enabled; + nrf_drv_clock_init(); #if (OPENTHREAD_CONFIG_ENABLE_DEFAULT_LOG_OUTPUT == 0)