Hello,
we are testing software with the nRF54L15 DK with the 3.0.2 SDK and toolchain.
When creating a board configuration we use:
nrf54l15dk/nrf54l15/cpuapp
optimize for debugging (-Og) or project defaults building
A working example project is the Blinky Sample at Zephyr/samples/basic.blinky. This works fine and debugs properly. However we are unable to get a RTC or timer example to build. Trying the Counter RTC Driver Sample at zephyr/sample/drivers/counter/alarm produces the error:
InD:/nrf/Examples/alarm/src/main.c:63:2: error: #error Unable to find a counter device node in devicetree
63 | #error Unable to find a counter device node in devicetree
| ^~~~~
In file included from C:/ncs/v3.0.2/zephyr/include/zephyr/toolchain/gcc.h:98,
from C:/ncs/v3.0.2/zephyr/include/zephyr/toolchain.h:50,
from C:/ncs/v3.0.2/zephyr/include/zephyr/kernel_includes.h:23,
from C:/ncs/v3.0.2/zephyr/include/zephyr/kernel.h:17,
from D:/nrf/Examples/alarm/src/main.c:7:
D:/nrf/Examples/alarm/src/main.c: In function 'main':
C:/ncs/v3.0.2/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_TIMER_ORD' undeclared (first use in this function); did you mean '__device_dts_ord_1'?
this post shows it working and building correctly:
RE: nrf54l15: RTC causing increase in sleep current
We tried switching tot he 2.9.2 SDK and toolchain but get the same error
xamples/alarm_1/src/main.c:59:2: error: #error Unable to find a counter device node in devicetree
59 | #error Unable to find a counter device node in devicetree
| ^~~~~
In file included from C:/ncs/v2.9.2/zephyr/include/zephyr/toolchain/gcc.h:98,
from C:/ncs/v2.9.2/zephyr/include/zephyr/toolchain.h:50,
from C:/ncs/v2.9.2/zephyr/include/zephyr/kernel_includes.h:23,
from C:/ncs/v2.9.2/zephyr/include/zephyr/kernel.h:17,
from D:/nrf/Examples/alarm_1/src/main.c:7:
D:/nrf/Examples/alarm_1/src/main.c: In function 'main':
perhaps that makes sense since there is no true RTC hardware on the nRF54L15, but I am not sure how the example in the referenced ticked was built. So we then tried the nrfx_timer counter mode example. using the 3.0.2. sdk and tool chain but still get an error.
CMake Warning at C:/ncs/v3.0.2/zephyr/CMakeLists.txt:2180 (message):
__ASSERT() statements are globally ENABLED
-- Configuring incomplete, errors occurred!
See also "D:/nrf/Examples/counter/build/counter/CMakeFiles/CMakeOutput.log".
See also "D:/nrf/Examples/counter/build/counter/CMakeFiles/CMakeError.log".
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: counter
Location: D:/nrf/Examples/counter
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:21 (include)
C:/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/ncs/v3.0.2/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "D:/nrf/Examples/counter/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bd:\nrf\Examples\counter\build' -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp -DBOARD_ROOT=d:/nrf/examples/counter '-SC:\ncs\v3.0.2\zephyr\share\sysbuild' '-DAPP_DIR:PATH=d:\nrf\Examples\counter'
we tried the nrfx_timer timer example and
-- Configuring incomplete, errors occurred!
See also "D:/nrf/Examples/timer/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bd:\nrf\Examples\timer\build' -GNinja -DBOARD=nrf54l15dk/nrf54l15/cpuapp -DBOARD_ROOT=d:/nrf/examples/timer '-SC:\ncs\v3.0.2\zephyr\share\sysbuild' '-DAPP_DIR:PATH=d:\nrf\Examples\timer'
We believe the SDK and toolchain are properly setup because the blinky example builds, programs, and debugs just fine. Are many of the examples broken for it? Are most examples to be modified after being created to be able to build? Is there a working example using the RTC0 for the nRF54L15? If so what SDK/toolchain and project is it? Are the above failures consistent with the findings of others?