zephyr: ci: samples/drivers/counter/alarm/sample.drivers.counter.alarm build is failing on sam_e70_xplained/same70q21

To Reproduce

west build -p -b sam_e70_xplained/same70q21 samples/drivers/counter/alarm -T sample.drivers.counter.alarm

Logs and console output

-- west build: making build dir ~/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: ~/zephyrproject/zephyr/samples/drivers/counter/alarm
-- CMake version: 3.22.1
-- Found Python3:~/zephyrproject/.venv/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: ~/.cache/zephyr
-- Zephyr version: 3.6.99 (~/zephyrproject/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: sam_e70_xplained, qualifiers: same70q21
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.5 (~/zephyr-sdk-0.16.5)
-- Found toolchain: zephyr 0.16.5 (~/zephyr-sdk-0.16.5)
-- Found Dtc: ~/zephyr-sdk-0.16.5/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: ~/zephyrproject/zephyr/boards/atmel/sam/sam_e70_xplained/sam_e70_xplained_same70q21.dts
-- Found devicetree overlay: ~/zephyrproject/zephyr/samples/drivers/counter/alarm/boards/sam_e70_xplained_same70q21.overlay
devicetree error: 'clk' appears in /soc/tc@4000c000 in ~/zephyrproject/zephyr/build/zephyr/zephyr.dts.pre, but is not declared in 'properties:' in ~/zephyrproject/zephyr/dts/bindings/sensor/atmel,sam-tc-qdec.yaml
-- In: ~/zephyrproject/zephyr/build/zephyr, command: ~/zephyrproject/.venv/bin/python3;~/zephyrproject/zephyr/scripts/dts/gen_defines.py;--dts;~/zephyrproject/zephyr/build/zephyr/zephyr.dts.pre;--dtc-flags;'-Wno-unique_unit_address_if_enabled';--bindings-dirs;~/zephyrproject/zephyr/dts/bindings;--header-out;~/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h.new;--dts-out;~/zephyrproject/zephyr/build/zephyr/zephyr.dts.new;--edt-pickle-out;~/zephyrproject/zephyr/build/zephyr/edt.pickle;--vendor-prefixes;~/zephyrproject/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at ~/zephyrproject/zephyr/cmake/modules/dts.cmake:295 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  ~/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
  ~/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  ~/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=~/zephyrproject/.venv/bin/python3 -B~/zephyrproject/zephyr/build -GNinja -DBOARD=sam_e70_xplained/same70q21 -S~/zephyrproject/zephyr/samples/drivers/counter/alarm

Impact blocking CI in https://github.com/zephyrproject-rtos/zephyr/pull/71208

Environment main 731f8d473610f04ec3d0cf53cb10dd373b467f31

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

The timer controller can run in sam-tc mode or in sam-tc-qdec mode. depending on usage we load the correct driver. default mode is sam-tc-qdec, thus loading the sam-tc-qdec driver.

so, for the alarm-sample-example mentioned above we need the sam-tc mode.

suggestion: we update the samples/drivers/counter/alarm/boards/sam_e70_xplained_same70q21.overlay

&tc0 {
        compatible = "atmel,sam-tc";
        clk = <4>;
        status = "okay";
};

that should do?

btw. accordingly we should also update sam_e70_xplained_same70q21b.overlay and ...samv71q21.overlay, ... samv71q21b.overlay

and probably also sam_v71_xult_samv71q21.overlay and sam_v71_xult_samv71q21b.overlay

overwriting the DTS to meet the actual needs is great, we should use it here. there is actually no need to necessarily change the default behaviour.