How to reset the uptime after a reboot?

Hi,

Is there a way to reset the uptime after doing a reboot? Rebooting the device by resetting the power does reset the uptime, however we need a way to initiate the reboot using firmware.

What we have tried so far:
Using sys_reboot();

Putting in either SYS_REBOOT_COLD or SYS_REBOOT_WARM as arguments in sys_reboot();

NVIC_SystemReset().

Implenenting SYSTEM_TIMER_HAS_DISABLE_SUPPORT in Kconfig, to enable sys_clock_disable();, but then the compiler spits out that sys_clock_disable(); is an undefined reference.

We are using a custom board, with MCU nrf54l15 and NRF Connect SDK 2.9.0.

Parents Reply Children
No Data
Related