Hello,
I tried to compile the platform nRF54L15 zephyr-adc ADC example but I’m getting errors. Could you help me?
Build logs
PS C:\GitHub\platform-seeedboards-main\examples\zephyr-adc> pio run
Processing seeed-xiao-nrf54l15 (platform: https://github.com/Seeed-Studio/platform-seeedboards.git; framework: zephyr; board: seeed-xiao-nrf54l15)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
board id is nrf,will call board_build/nrf/nrf_build.py
CONFIGURATION: https://docs.platformio.org/page/boards/Seeed Studio/seeed-xiao-nrf54l15.html
PLATFORM: Seeed Studio Xiao Series (1.0.0+sha.47379f3) > Seeed Studio XIAO nRF54L15
HARDWARE: NRF54L15 128MHz, 256KB RAM, 1.50MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink)
PACKAGES:
- framework-zephyr @ 3.40100.0 (4.1.0)
- tool-cmake @ 3.30.2
- tool-dtc @ 1.4.7
- tool-ninja @ 1.9.0
- tool-sreccat @ 1.164.0 (1.64)
- toolchain-gccarmnoneeabi @ 1.80201.181220 (8.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\seeed-xiao-nrf54l15\src\main.o
Compiling .pio\build\seeed-xiao-nrf54l15\c\modules\picolibc\newlib\libc\machine\arm\strlen.c.o
Compiling .pio\build\seeed-xiao-nrf54l15\c\modules\picolibc\newlib\libc\machine\arm\strlen.S.o
Compiling .pio\build\seeed-xiao-nrf54l15\c\modules\picolibc\newlib\libc\argz\argz_add.c.o
Compiling .pio\build\seeed-xiao-nrf54l15\c\modules\picolibc\newlib\libc\argz\argz_add_sep.c.o
In file included from C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/toolchain/gcc.h:98,
from C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/toolchain.h:52,
from C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/kernel_includes.h:23,
from C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/kernel.h:17,
from src\main.c:1:
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/device.h:96:41: error: '__device_dts_ord_60' undeclared here (not in a function); did you mean '__device_dts_ord_62'?
#define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
^~~~~~~~~
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
#define _DO_CONCAT(x, y) x ## y
^
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/device.h:96:33: note: in expansion of macro '_CONCAT'
#define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
^~~~~~~
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/device.h:263:37: note: in expansion of macro 'DEVICE_NAME_GET'
#define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
^~~~~~~~~~~~~~~
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/device.h:280:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
#define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
^~~~~~~~~~~~~~~~~~
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/drivers/pwm.h:260:10: note: in expansion of macro 'DEVICE_DT_GET'
.dev = DEVICE_DT_GET(DT_PWMS_CTLR_BY_IDX(node_id, idx)), \
^~~~~~~~~~~~~
C:\Users\user\.platformio\packages\framework-zephyr\include/zephyr/drivers/pwm.h:328:34: note: in expansion of macro 'PWM_DT_SPEC_GET_BY_IDX'
#define PWM_DT_SPEC_GET(node_id) PWM_DT_SPEC_GET_BY_IDX(node_id, 0)
^~~~~~~~~~~~~~~~~~~~~~
src\main.c:27:39: note: in expansion of macro 'PWM_DT_SPEC_GET'
static const struct pwm_dt_spec led = PWM_DT_SPEC_GET(DT_ALIAS(pwm_led));
^~~~~~~~~~~~~~~
Compiling .pio\build\seeed-xiao-nrf54l15\c\modules\picolibc\newlib\libc\argz\argz_append.c.o
*** [.pio\build\seeed-xiao-nrf54l15\src\main.o] Error 1
================================================================================================================================== [FAILED] Took 9.18 seconds ==================================================================================================================================
PS C:\GitHub\platform-seeedboards-main\examples\zephyr-adc>
Boards config
"nrf-connect.boardRoots": [
"C:\\GitHub\\platform-seeedboards-main\\zephyr"
]
Best regards