Topic

FAQ
Login Register
Error west build
Apr 08, 2023 12:39

/

A

/A

Hi everyone. I tried build example lighting-app but when I build have this error. How to fix it?

I use:

python veriosn: 3.8.10

cmake version: 3.26.3



WARNING: This looks like a fresh build and BOARD is unknown; so it probably won't work. To fix, use --board=.
Note: to silence the above message, run 'west config build.board_warn false'
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/cuong/connectedhomeip/examples/lighting-app/telink
-- CMake version: 3.26.3
-- Found Python3: /home/cuong/connectedhomeip/.environment/pigweed-venv/bin/python3 (found suitable exact version "3.8.10") found components: Interpreter
-- Cache files will be written to: /home/cuong/.cache/zephyr
-- Zephyr version: 3.3.99 (/home/cuong/zephyrproject/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: tlsr9518adk80d
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.0 (/home/cuong/zephyr-sdk-0.16.0)
-- Found toolchain: zephyr 0.16.0 (/home/cuong/zephyr-sdk-0.16.0)
-- Found Dtc: /home/cuong/zephyr-sdk-0.16.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/cuong/zephyrproject/zephyr/boards/riscv/tlsr9518adk80d/tlsr9518adk80d.dts
-- Found devicetree overlay: /home/cuong/connectedhomeip/src/platform/telink/tlsr9518adk80d.overlay
devicetree error: Label 'slot0_partition' appears on /soc/flash-controller@80140100/flash@20000000/partitions/partition@10000 and on /soc/flash-controller@80140100/flash@20000000/partitions/partition@13000
-- In: /home/cuong/connectedhomeip/examples/lighting-app/telink/build/zephyr, command: /home/cuong/connectedhomeip/.environment/pigweed-venv/bin/python3;/home/cuong/zephyrproject/zephyr/scripts/dts/gen_defines.py;--dts;/home/cuong/connectedhomeip/examples/lighting-app/telink/build/zephyr/zephyr.dts.pre;--dtc-flags;'';--bindings-dirs;/home/cuong/zephyrproject/zephyr/dts/bindings;--header-out;/home/cuong/connectedhomeip/examples/lighting-app/telink/build/zephyr/include/generated/devicetree_generated.h.new;--dts-out;/home/cuong/connectedhomeip/examples/lighting-app/telink/build/zephyr/zephyr.dts.new;--edt-pickle-out;/home/cuong/connectedhomeip/examples/lighting-app/telink/build/zephyr/edt.pickle;--vendor-prefixes;/home/cuong/zephyrproject/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at /home/cuong/zephyrproject/zephyr/cmake/modules/dts.cmake:295 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/home/cuong/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:114 (include)
/home/cuong/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/cuong/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:49 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/cuong/connectedhomeip/.environment/pigweed-venv/bin/python -B/home/cuong/connectedhomeip/examples/lighting-app/telink/build -GNinja -S/home/cuong/connectedhomeip/examples/lighting-app/telink


2 replies
TL_Soyo Apr 10, 2023 11:05
0
/A

Hi,

  your building environment may has some problem,you can follow the link to build your SDK http://wiki.telink-semi.cn/tools_and_sdk/Demo/Matter/Telink%20Matter%20Developers%20Guide%20V0.2.9.pdf

cuongngo [Author] Apr 10, 2023 15:17
0
/A




I follow that documents. But when I build have a error version SDK 0.13.2 This version is not buildable. I update to 0.16. When I tried then have that error