Hi,
When upgrading a project from ncs 1.3.0 to 1.4.0, the clock_control_on() call behaves different; It always returns -EPERM. Did the API change?
The call is used as follows:
static int clock_init(void)
{
int err;
const struct device *clock;
clock = device_get_binding(DT_INST_LABEL(0));
if (!clock) {
printk("Unable to find clock device binding\n");
return -ENODEV;
}
err = clock_control_on(clock, CLOCK_CONTROL_NRF_SUBSYS_HF);
if (err) {
printk("Unable to turn on the clock: %d", err);
}
return err;
}
Thanks,
-Bastiaan