Hello,
I'm trying to start softdevice on a custom board with nRF51822 chip and S110 device. The code hangs in SOFTDEVICE_HANDLER_INIT. It seems that EVENTS_LFCLKSTARTED is never set.
Here's the used part of the code:
// Start 32 MHz crystal oscillator NRF_CLOCK->XTALFREQ = 0; NRF_CLOCK->EVENTS_HFCLKSTARTED = 0; NRF_CLOCK->TASKS_HFCLKSTART = 1; // Wait for the external oscillator to start up while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0) {} SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);
The problem is there also without debugger. What could be wrong?
Best regards, Cyril.