I am trying to wake up the NRF54L15-DK from deep sleep using RTC. The device goes into deep sleep but never wakes up. I would like to know if RTC can wake up the micro from deep sleep. Is it something I am doing wrong or is this not possible at all?
I am trying to wake up the NRF54L15-DK from deep sleep using RTC. The device goes into deep sleep but never wakes up. I would like to know if RTC can wake up the micro from deep sleep. Is it something I am doing wrong or is this not possible at all?
Hi,
There is a sample that shows wakeup from system off with the nRF54L-series devices in zephyr/samples/boards/nordic/system_off, where specifically this logic is what enables the GRTC to run in systemoff mode:
Remember to set "CONFIG_GRTC_WAKEUP_ENABLE=y" when evaluating.
Kind regards,
Håkon
Hi, Thanks for the response. When setting CONFIG_GRTC_WAKEUP_ENABLE=y in the prj.conf file, debug fails. Any idea why? Sorry, I am new to the NRF environment.
Hi,
Happy to help out.
Debugging while entering systemoff is generally not easy, because this is a mode where (mostly) combinatory logic is powered + the GRTC, while the active SWD debug interface requires certain CPU parts to run to work as intended.
Due to this, we have a "emulated system off mode", which will not work entirely as the function does without debug mode:
https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/pmu.html#ariaid-title5
We recommend that you add a while(1) loop after, to ensure that you do not debug/step further.
Kind regards,
Håkon
Sorry my mistake, build fails. so I am trying to write CONFIG_GRTC_WAKEUP_ENABLE=y in my .conf file but this does not build. I intended to flash only, not debug.
Can you share the output?
C:/ncs/button_k_sleep/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol GRTC_WAKEUP_ENABLEParsing C:/ncs/v3.1.0/zephyr/Kconfig
Loaded configuration 'C:/ncs/v3.1.0/zephyr/boards/ezurio/bl54l15u_dvk/bl54l15u_dvk_nrf54l15_cpuapp_ns_defconfig'
Merged configuration 'C:/ncs/button_k_sleep/prj.conf'
Merged configuration 'C:/ncs/button_k_sleep/build/button_k_sleep/zephyr/.config.sysbuild'
error: Aborting due to Kconfig warnings
CMake Error at C:/ncs/v3.1.0/zephyr/cmake/modules/kconfig.cmake:377 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v3.1.0/nrf/cmake/modules/kconfig.cmake:83 (include)
C:/ncs/v3.1.0/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
C:/ncs/button_k_sleep/prj.conf:8: warning: attempt to assign the value 'y' to the undefined symbol GRTC_WAKEUP_ENABLEParsing C:/ncs/v3.1.0/zephyr/Kconfig
Loaded configuration 'C:/ncs/v3.1.0/zephyr/boards/ezurio/bl54l15u_dvk/bl54l15u_dvk_nrf54l15_cpuapp_ns_defconfig'
Merged configuration 'C:/ncs/button_k_sleep/prj.conf'
Merged configuration 'C:/ncs/button_k_sleep/build/button_k_sleep/zephyr/.config.sysbuild'
error: Aborting due to Kconfig warnings
CMake Error at C:/ncs/v3.1.0/zephyr/cmake/modules/kconfig.cmake:377 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v3.1.0/nrf/cmake/modules/kconfig.cmake:83 (include)
C:/ncs/v3.1.0/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v3.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
Hi,
Thanks for sharing the log.
The symbol:
warning: attempt to assign the value 'y' to the undefined symbol GRTC_WAKEUP_ENABLE
is local to the sample that I shared here:
zephyr/samples/boards/nordic/system_off
Here's the local definition of it:
https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/nordic/system_off/Kconfig#L16
If you are trying to integrate it into your own project, just copy the code directly without the guard for "GRTC_WAKEUP_ENABLE" symbol.
Kind regards,
Håkon