wait for hf clock to avoid hardware dependent race conditions.
@@ -520,6 +520,8 @@ init(void)
/* Request the HF clock */
nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTART);
+ while(!nrf_clock_event_check(NRF_CLOCK_EVENT_HFCLKSTARTED));
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
/* Start the RF driver process */
process_start(&nrf52840_ieee_rf_process, NULL);
