Access to the 32 kHz clock on nRF54L15

Hello!

I want to make a self-test that verifies the speeds of the 32.768 kHz clock and the 32 MHz clock.

The idea is that if the ratio (976.56 to 1) is correct, then the speeds are probably correct.

However, all timers from TIMER00 to TIMER24 seem to be based on the 32 MHz clock.

The watchdog uses the LF clock but the driver returns -ENOTSUP unless using WDT_FLAGS_RESET_SOC, so apparently it can only reset the system and not call a custom callback.

The GRTC uses the LF clock in low power mode when the HF clock is not available, but I want both running at the same time.

Is there any other way to expose both the HF and LF clocks simultaneously as counters or timers?

It seems the GRTC can expose them on GPIOs, but for simplicity I want to do this purely in software.

Regards, Tom

Parents Reply Children
Related