Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zephyr/samples/drivers/watchdog fails to build on esp32s3_touch_lcd_1_28 and nrf54l15/cpuflpr #72655

Closed
nordic-segl opened this issue May 13, 2024 · 4 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug

Comments

@nordic-segl
Copy link
Contributor

Describe the bug
The zephyr/samples/drivers/watchdog fails.

Observed on:

  • Board: esp32s3_touch_lcd_1_28, qualifiers: esp32s3/appcpu
  • Board: nrf54l15pdk, Revision: 0.2.1, qualifiers: nrf54l15/cpuflpr

To Reproduce
Steps to reproduce the behaviour:

  1. have esp32s3_touch_lcd_1_28 or nrf54l15pdk connected to PC
  2. go to your zephyr directory
  3. call ./scripts/twister -T tests/drivers/watchdog -p nrf54l15pdk/nrf54l15/cpuflpr --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior
Test shall compile and pass.

Impact
Other PRs are blocked, f.e. #72566

Logs and console output
Most likely, target yaml has "supports watchdog" like here:
https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/nordic/nrf54l15pdk/nrf54l15pdk_nrf54l15_cpuflpr.yaml#L17
But board DTS doesn't define alias watchdog0 used in the test.

On esp32s3_touch_lcd_1_28:

Build failure
Loading Zephyr default modules (Zephyr base).
-- Application: /__w/zephyr/zephyr/samples/drivers/watchdog
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /root/.cache/zephyr
-- Zephyr version: 3.6.99 (/__w/zephyr/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: esp32s3_touch_lcd_1_28, qualifiers: esp32s3/appcpu
-- Found host-tools: zephyr 0.16.5 (/opt/toolchains/zephyr-sdk-0.16.5-1)
-- Found toolchain: zephyr 0.16.5 (/opt/toolchains/zephyr-sdk-0.16.5-1)
-- Found Dtc: /opt/toolchains/zephyr-sdk-0.16.5-1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/dts.cmake
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu_defconfig'
Merged configuration '/__w/zephyr/zephyr/samples/drivers/watchdog/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /opt/toolchains/zephyr-sdk-0.16.5-1/xtensa-espressif_esp32s3_zephyr-elf/xtensa-espressif_esp32s3_zephyr-elf/bin/ld.bfd (found version "2.38") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/toolchains/zephyr-sdk-0.16.5-1/xtensa-espressif_esp32s3_zephyr-elf/bin/xtensa-espressif_esp32s3_zephyr-elf-gcc
esptool path: /__w/zephyr/modules/hal/espressif/tools/esptool_py/esptool.py
-- Using ccache: /usr/local/bin/ccache
CMake Warning at /__w/zephyr/zephyr/CMakeLists.txt:874 (message):
  No SOURCES given to Zephyr library: drivers__watchdog

  Excluding target from build.


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    TC_RUNID


-- Build files have been written to: /__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog
[1/219] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/__w/zephyr/zephyr), build: v3.6.0-3771-gadf75da6c2a3
[2/219] Preparing syscall dependency handling

[3/219] Generating misc/generated/syscalls_subdirs.trigger
[4/219] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[5/219] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/219] Generating include/generated/driver-validation.h
[7/219] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[8/219] Generating ../../../../include/generated/core-isa-dM.h
[9/219] Generating ../../../../include/generated/zsr.h
[10/219] Building C object zephyr/CMakeFiles/offsets.dir/arch/xtensa/core/offsets/offsets.c.obj
[11/219] Generating include/generated/offsets.h
[12/219] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
ccache /opt/toolchains/zephyr-sdk-0.16.5-1/xtensa-espressif_esp32s3_zephyr-elf/bin/xtensa-espressif_esp32s3_zephyr-elf-gcc -DCONFIG_APP_BUILD_USE_FLASH_SECTIONS -DESP_PLATFORM -DKERNEL -DK_HEAP_MEM_POOL_SIZE=256 -D__ZEPHYR__=1 -I/__w/zephyr/zephyr/include -I/__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated -I/__w/zephyr/zephyr/soc/espressif -I/__w/zephyr/zephyr/soc/espressif/common/include -I/__w/zephyr/zephyr/soc/espressif/esp32s3/. -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/include/bt -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../esp_shared/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../esp_shared/components/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/efuse/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/efuse/private_include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/efuse/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/efuse/esp32s3/private_include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_adc/deprecated/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_common/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/dma -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/include/esp_private -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/include/hal -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/include/soc -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/include/soc/esp32s3 -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/port/esp32s3 -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_hw_support/port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_rom/esp32s3 -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_rom/esp32s3/ld -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_rom/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_rom/include/esp32s3 -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_system/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_system/include/esp_private -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_system/port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_system/port/include/private -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/hal/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/hal/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/hal/include/hal -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/hal/platform_port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/log/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/soc/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/soc/esp32s3/ld -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/soc/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/xtensa/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/xtensa/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/xtensa/include/esp_private -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/xtensa/include/xtensa -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_timer/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_timer/private_include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/deprecated -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/gpio/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/uart/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/touch_sensor/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/touch_sensor/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/driver/spi/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/spi_flash/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/spi_flash/include/spi_flash -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_pm/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/bootloader_support/bootloader_flash/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/bootloader_support/private_include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/bootloader_support/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/heap/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_psram/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_mm/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_netif/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_coex/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_phy/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_phy/include/esp_private -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_phy/esp32s3/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_wifi/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/esp_event/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/esp_supplicant/src -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/esp_supplicant/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/include/esp_supplicant -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/src -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/src/crypto -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/src/utils -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/wpa_supplicant/src/eap_peer -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../../components/mbedtls/port/include -I/__w/zephyr/modules/hal/espressif/zephyr/esp32s3/../port/include/boot -isystem /__w/zephyr/zephyr/lib/libc/minimal/include -isystem /__w/zephyr/zephyr/lib/libc/common/include -fno-strict-aliasing -Werror -Os -imacros /__w/zephyr/zephyr/twister-out/esp32s3_touch_lcd_1_28_esp32s3_appcpu/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always --sysroot=/opt/toolchains/zephyr-sdk-0.16.5-1/xtensa-espressif_esp32s3_zephyr-elf/xtensa-espressif_esp32s3_zephyr-elf -imacros /__w/zephyr/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/__w/zephyr/zephyr/samples/drivers/watchdog=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections -mlongcalls -Wno-unused-variable -Wno-maybe-uninitialized -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c /__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c
In file included from /__w/zephyr/zephyr/include/zephyr/toolchain/gcc.h:98,
                 from /__w/zephyr/zephyr/include/zephyr/toolchain.h:50,
                 from /__w/zephyr/zephyr/include/zephyr/kernel_includes.h:23,
                 from /__w/zephyr/zephyr/include/zephyr/kernel.h:17,
                 from /__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:10:
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c: In function 'main':
/__w/zephyr/zephyr/include/zephyr/device.h:91:41: error: '__device_dts_ord_DT_N_ALIAS_watchdog0_ORD' undeclared (first use in this function)
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
  137 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/__w/zephyr/zephyr/include/zephyr/device.h:91:33: note: in expansion of macro '_CONCAT'
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:228:37: note: in expansion of macro 'DEVICE_NAME_GET'
  228 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:245:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  245 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:85:42: note: in expansion of macro 'DEVICE_DT_GET'
   85 |         const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0));
      |                                          ^~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:91:41: note: each undeclared identifier is reported only once for each function it appears in
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
  137 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/__w/zephyr/zephyr/include/zephyr/device.h:91:33: note: in expansion of macro '_CONCAT'
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:228:37: note: in expansion of macro 'DEVICE_NAME_GET'
  228 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:245:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  245 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:85:42: note: in expansion of macro 'DEVICE_DT_GET'
   85 |         const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0));
      |                                          ^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

On nrf54l15pdk:

Build failure
Loading Zephyr default modules (Zephyr base).
-- Application: /__w/zephyr/zephyr/samples/drivers/watchdog
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /root/.cache/zephyr
-- Zephyr version: 3.6.99 (/__w/zephyr/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15pdk, Revision: 0.2.1, qualifiers: nrf54l15/cpuflpr
-- Found host-tools: zephyr 0.16.5 (/opt/toolchains/zephyr-sdk-0.16.5-1)
-- Found toolchain: zephyr 0.16.5 (/opt/toolchains/zephyr-sdk-0.16.5-1)
-- Found Dtc: /opt/toolchains/zephyr-sdk-0.16.5-1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /__w/zephyr/zephyr/boards/nordic/nrf54l15pdk/nrf54l15pdk_nrf54l15_cpuflpr.dts
unit address and first address in 'reg' (0x20028000) don't match for /soc/memory@2002f000
-- Generated zephyr.dts: /__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/dts.cmake
/__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/zephyr.dts:97.33-104.5: Warning (simple_bus_reg): /soc/memory@2002f000: simple-bus unit address format error, expected "20028000"
Parsing /__w/zephyr/zephyr/Kconfig
Loaded configuration '/__w/zephyr/zephyr/boards/nordic/nrf54l15pdk/nrf54l15pdk_nrf54l15_cpuflpr_defconfig'
Merged configuration '/__w/zephyr/zephyr/samples/drivers/watchdog/prj.conf'
Merged configuration '/__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/.config'
Kconfig header saved to '/__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /opt/toolchains/zephyr-sdk-0.16.5-1/riscv64-zephyr-elf/riscv64-zephyr-elf/bin/ld.bfd (found version "2.38") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/toolchains/zephyr-sdk-0.16.5-1/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gcc
-- Using ccache: /usr/local/bin/ccache
CMake Warning at /__w/zephyr/zephyr/CMakeLists.txt:874 (message):
  No SOURCES given to Zephyr library: drivers__clock_control

  Excluding target from build.


CMake Warning at /__w/zephyr/zephyr/CMakeLists.txt:874 (message):
  No SOURCES given to Zephyr library: drivers__watchdog

  Excluding target from build.


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    TC_RUNID


-- Build files have been written to: /__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog
[1/124] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/__w/zephyr/zephyr), build: v3.6.0-3771-gadf75da6c2a3
[2/124] Preparing syscall dependency handling

[3/124] Generating misc/generated/syscalls_subdirs.trigger
[4/124] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[5/124] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/124] Generating include/generated/driver-validation.h
[7/124] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[8/124] Building C object zephyr/CMakeFiles/offsets.dir/arch/riscv/core/offsets/offsets.c.obj
[9/124] Generating include/generated/offsets.h
[10/124] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj 
ccache /opt/toolchains/zephyr-sdk-0.16.5-1/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF54L15_ENGA_XXAA -DNRF_FLPR -DPICOLIBC_LONG_LONG_PRINTF_SCANF -D__LINUX_ERRNO_EXTENSIONS__ -D__ZEPHYR__=1 -I/__w/zephyr/zephyr/include -I/__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated -I/__w/zephyr/zephyr/soc/nordic -I/__w/zephyr/zephyr/soc/common/riscv-privileged/. -I/__w/zephyr/zephyr/soc/nordic/nrf54l/. -I/__w/zephyr/zephyr/soc/nordic/common/vpr/. -I/__w/zephyr/zephyr/soc/nordic/common/. -I/__w/zephyr/modules/hal/nordic/nrfx -I/__w/zephyr/modules/hal/nordic/nrfx/drivers/include -I/__w/zephyr/modules/hal/nordic/nrfx/mdk -I/__w/zephyr/zephyr/modules/hal_nordic/nrfx/. -isystem /__w/zephyr/zephyr/lib/libc/common/include -fno-strict-aliasing -Werror -Os -imacros /__w/zephyr/zephyr/twister-out/nrf54l15pdk_nrf54l15_cpuflpr/samples/drivers/watchdog/sample.drivers.watchdog/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mabi=ilp32e -march=rv32emc_zicsr_zifencei --sysroot=/opt/toolchains/zephyr-sdk-0.16.5-1/riscv64-zephyr-elf/riscv64-zephyr-elf -imacros /__w/zephyr/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/__w/zephyr/zephyr/samples/drivers/watchdog=CMAKE_SOURCE_DIR -fmacro-prefix-map=/__w/zephyr/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/__w/zephyr=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c /__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c
In file included from /__w/zephyr/zephyr/include/zephyr/toolchain/gcc.h:98,
                 from /__w/zephyr/zephyr/include/zephyr/toolchain.h:50,
                 from /__w/zephyr/zephyr/include/zephyr/kernel_includes.h:23,
                 from /__w/zephyr/zephyr/include/zephyr/kernel.h:17,
                 from /__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:10:
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c: In function 'main':
/__w/zephyr/zephyr/include/zephyr/device.h:91:41: error: '__device_dts_ord_81' undeclared (first use in this function); did you mean '__device_dts_ord_1'?
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
  137 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/__w/zephyr/zephyr/include/zephyr/device.h:91:33: note: in expansion of macro '_CONCAT'
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:228:37: note: in expansion of macro 'DEVICE_NAME_GET'
  228 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:245:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  245 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:85:42: note: in expansion of macro 'DEVICE_DT_GET'
   85 |         const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0));
      |                                          ^~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:91:41: note: each undeclared identifier is reported only once for each function it appears in
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
  137 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/__w/zephyr/zephyr/include/zephyr/device.h:91:33: note: in expansion of macro '_CONCAT'
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:228:37: note: in expansion of macro 'DEVICE_NAME_GET'
  228 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:245:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  245 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/samples/drivers/watchdog/src/main.c:85:42: note: in expansion of macro 'DEVICE_DT_GET'
   85 |         const struct device *const wdt = DEVICE_DT_GET(DT_ALIAS(watchdog0));
      |                                          ^~~~~~~~~~~~~
ninja: build stopped: subcommand failed.

Environment (please complete the following information):

  • OS: Ubuntu 20.04.4 LTS
  • zephyr-sdk-0.16.5-1
  • Zephyr version: 3.6.99
@nordic-segl nordic-segl added the bug The issue is a bug, or the PR is fixing a bug label May 13, 2024
Copy link

Hi @nordic-segl! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@nordic-segl nordic-segl changed the title zephyr/samples/drivers/watchdog fails on esp32s3_touch_lcd_1_28 zephyr/samples/drivers/watchdog fails on esp32s3_touch_lcd_1_28 and nrf54l15/cpuflpr May 13, 2024
@henrikbrixandersen henrikbrixandersen added platform: ESP32 Espressif ESP32 and removed platform: ESP32 Espressif ESP32 labels May 13, 2024
@aescolar aescolar added the priority: high High impact/importance bug label May 14, 2024
@aescolar aescolar changed the title zephyr/samples/drivers/watchdog fails on esp32s3_touch_lcd_1_28 and nrf54l15/cpuflpr zephyr/samples/drivers/watchdog fails to build on esp32s3_touch_lcd_1_28 and nrf54l15/cpuflpr May 14, 2024
@sylvioalves
Copy link
Collaborator

@henrikbrixandersen ESP32 related issue has been by #72662

@nordic-segl
Copy link
Contributor Author

nordic-segl commented May 15, 2024

Fix for failures on nrf54l15/cpuflpr is here #72566 (merged)

@aescolar
Copy link
Member

Closing as both reported boards with failures have had their respective fixes merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug
Projects
None yet
Development

No branches or pull requests

6 participants