NRF54L15 GRTC SYSCOUNTER

Hi Dev,

Development platform: NRF54L15 + NCS 3.2.3.
We are using the GRTC SYSCOUNTER as a system timestamp. Under normal conditions, a software reset does not clear the GRTC counter value.

However, after long-term operation, we occasionally observe that the SYSCONTER becomes zero after a reset, causing the system timestamp to roll back.

Could you please clarify:

1. Under which reset conditions is the SYSCONTER cleared, and under which conditions is it preserved?

2. How can we prevent the SYSCOUNTER from being cleared across resets (or recover the timestamp reliably if clearing is unavoidable)?

Thanks,
Chen

Parents
  • Thanks for the analysis.

    Instead of modifying the Kconfig, I'm considering using NVIC_SystemReset() directly. This bypasses sys_clock_disable() and should preserve the GRTC counter.

    Two quick questions:

    1. Is NVIC_SystemReset() safe for preserving GRTC without affecting other AON registers?

    2. Any known issues on nRF54L15 with skipping de-init for peripherals like Radio/DMA, assuming we re-init them after reset?

    Thanks,
    Chen

Reply
  • Thanks for the analysis.

    Instead of modifying the Kconfig, I'm considering using NVIC_SystemReset() directly. This bypasses sys_clock_disable() and should preserve the GRTC counter.

    Two quick questions:

    1. Is NVIC_SystemReset() safe for preserving GRTC without affecting other AON registers?

    2. Any known issues on nRF54L15 with skipping de-init for peripherals like Radio/DMA, assuming we re-init them after reset?

    Thanks,
    Chen

Children
Related