Running on Fanstel BM15M module (nrf54L15) SDK v3.1.1, I seeing a huge timing error when trying to implement a simple timer function. In the code below, I believe I have followed the examples to implement a timer (24) with a 1MHz frequency and a 100 count interval which should yield a 10kHz interrupt. But using the callback function to toggle a debug pin and monitoring that pin with an O'scope, I see a stable 128us interval instead of 100us - a 28% error. I am running off the internal oscillator. The internal crystal is 250ppm which should yield at most an error 2.5us
Please tell me what I am doing wrong. Side note when I try to use the external 32MHz crystal per the notes provided by Fanstel, I get stuck with an assertion error - "err = mpsl_init(&clock_cfg, CONFIG_MPSL_LOW_PRIO_IRQN, m_assert_handl" - but that is perhaps a discussion for another day.
prf.conf lines:
Timer setup in main.c: