I wanted to use the nrfx_clock driver in my program, but it breaks OpenThread. I don't get any errors messages but the device can't connect to a network created with another device running the OpenThread CLI demo. It seems like the devices can't see each other.
I'm using Particle Xenons and nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b.zip
This is the code that's causing the problem.
static void clock_evt_handler(nrfx_clock_evt_type_t event)
{
}
int main(void)
{
ret_code_t r = nrfx_clock_init(&clock_evt_handler);
APP_ERROR_CHECK(r);
nrfx_clock_enable();
nrfx_clock_lfclk_start();
while(!nrfx_clock_lfclk_is_running());