Re: custom board #customboard #dts

Lawrence King

The Kconfig.defconfig doesn’t look right


config BOARD

              default "fuse board"


I think it should be “fuseboard” or maybe “fuse_board” but I didn’t test it. I looked at every other board name in the zephyr tree and none have a space in the default.


Lawrence King

Principal Developer



From: users@... <users@...> On Behalf Of wbasser@...
Sent: Wednesday, March 31, 2021 1:21 PM
To: users@...
Subject: [Zephyr-users] custom board #customboard #dts


Created a custom board file, based on the DTS for a sample board.  Changed the name of the file, and the references to the new board.  Attempting to build, I received this error.

C:\zephyrproject\zephyr>west build -p auto -b fuseboard c:/temp/fusetest

-- west build: making build dir C:\zephyrproject\zephyr\build pristine

-- west build: generating a build system

Including boilerplate (Zephyr base): C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake

-- Application: C:/Temp/FuseTest

-- Zephyr version: 2.5.99 (C:/zephyrproject/zephyr)

-- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.2") found components: Interpreter

-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")

-- Board: fuseboard

-- Cache files will be written to: C:/zephyrproject/zephyr/.cache

-- Found toolchain: gnuarmemb (c:/gnuarmemb)

-- Found BOARD.dts: C:/Temp/FuseTest/boards/arm/fuseboard/fuseboard.dts

-- Generated zephyr.dts: C:/zephyrproject/zephyr/build/zephyr/zephyr.dts

-- Generated devicetree_unfixed.h: C:/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h

-- Generated device_extern.h: C:/zephyrproject/zephyr/build/zephyr/include/generated/device_extern.h

Parsing C:/zephyrproject/zephyr/Kconfig

Loaded configuration 'C:/Temp/FuseTest/boards/arm/fuseboard/fuseboard_defconfig'

Merged configuration 'C:/Temp/FuseTest/prj.conf'

Configuration saved to 'C:/zephyrproject/zephyr/build/zephyr/.config'

Kconfig header saved to 'C:/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'

-- The C compiler identification is GNU 10.2.1

-- The CXX compiler identification is GNU 10.2.1

-- The ASM compiler identification is GNU

-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe

CMake Error at C:/zephyrproject/zephyr/boards/common/openocd-nrf5.board.cmake:13 (message):

  Can't match nrf5 subfamily from BOARD name.  To fix, set CMake variable


Call Stack (most recent call first):

  boards/arm/fuseboard/board.cmake:8 (include)

  C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake:622 (include)

  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)

  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)

  CMakeLists.txt:10 (find_package)



-- Configuring incomplete, errors occurred!

See also "C:/zephyrproject/zephyr/build/CMakeFiles/CMakeOutput.log".

See also "C:/zephyrproject/zephyr/build/CMakeFiles/CMakeError.log".

FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\python39\python.exe' '-BC:\zephyrproject\zephyr\build' '-Sc:\temp\fusetest' -GNinja -DBOARD=fuseboard

I have had a successful attempt at this with a different family of processors with no problem.  

I have attached the project files for reference.

Any help would be appreciated.

Join to automatically receive all group messages.