Hie Richard,
The internal oscillator is not the actual reason why you see different rate after each reboot. As you suspected, the BLE stack is switching HFXO on and off around radio events which causes changes in the sampling rate.
When HFXO is running, your TIMER achieves better accuracy but when it is off, the TIMER falls back to HFINT. [link : https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrfxlib/mpsl/doc/clock.html]
This explains both symptoms:
Hie Richard,
The internal oscillator is not the actual reason why you see different rate after each reboot. As you suspected, the BLE stack is switching HFXO on and off around radio events which causes changes in the sampling rate.
When HFXO is running, your TIMER achieves better accuracy but when it is off, the TIMER falls back to HFINT. [link : https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrfxlib/mpsl/doc/clock.html]
This explains both symptoms:
Thanks for the clarification :-)