How to make the Intermittent application with GRTC and LFXO while asleep.

Hi.

I have been investigating how to use GRTC and LFXO for LFCLK with nRF54L15DK.
In my goal, I would like to make the Intermittent application with sleep and GRTC that works with LFXO even if the MCU stay asleep.

I found the library(nrfx_grtc.h), but I couldn't find the sample named 'GRTC' with the library from ncs 3.0.0.

Do you know how to manipulate the API of GRTC, and properly to write the prj.cof ?


Best regards.

Parents Reply Children
  • Additionally, I found the example code using system-off, named as below.
    It was found on "ncs/v3.0.0/zephyr/samples/boards/nordic/system_off".

    .. zephyr:code-sample:: nrf_system_off
       :name: System Off
       :relevant-api: sys_poweroff subsys_pm_device

    I added in prj.conf as below because I would like to use GRTC wakeup when asleep, running nRF54L15dk

    CONFIG_GRTC_WAKEUP_ENABLE=y
    CONFIG_GPIO_WAKEUP_ENABLE=n

    But, it won't wake up.

    *** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***
    *** Using Zephyr OS v4.0.99-3e0ce7636fa6 ***
    
    nrf54l15dk system off demo
    Reset by debugger.
    Retained data not supported
    Entering system off; wait 2 seconds to restart
    
    

    Is any more library or configuration required ?

    Best regards.

  • This example should not require any additional modifications besides the configuration changes you made. I also confirmed this by building the same sample on my end. Please try loading the attached hex file to see if you get the same result.

    8468.merged.hex

    nrfutil command to flash the *.hex file from the command line:

    nrfutil device program --firmware merged.hex --options reset=RESET_PIN,verify=VERIFY_READ,chip_erase_mode=ERASE_NONE

Related