- Edited
Supporting observation that newly created Kconfig causes the above multiple undefined symbols errors, when I set aside the Kconfig in project directory blink-plus-uart
the error count goes to one. Only the symbol I referenced for the new sensor driver is undefined. Truthfully I do not yet know where to define this symbol, and I could locate through recursive pattern matching where any of the other undefined symbols above are defined in ncs 1.6.1
or the Zephyr release tag within ncs 1.6.1
.
Build messages here for same project as throughout this post, but Kconfig along side src/main.c
and the newly added drivers
directory and subdirs moved aside and not visible to cmake
:
ted@localhost:~/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart$ west build -b sparkfun_thing_plus_nrf9160 -p
-- west build: making build dir /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/ted/projects/embedded/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart
-- Zephyr version: 2.6.0-rc1 (/home/ted/projects/embedded/ncs/zephyr), build: v2.6.0-rc1-ncs1
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: sparkfun_thing_plus_nrf9160
-- Cache files will be written to: /home/ted/.cache/zephyr
-- Using toolchain: zephyr 0.12.4 (/opt/zephyr-sdk-0.12.4)
-- Found dtc: /opt/zephyr-sdk-0.12.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/ted/projects/embedded/ncs/zephyr/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160.dts
-- Found devicetree overlay: /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/app.overlay
sparkfun_thing_plus_nrf9160.dts.pre.tmp:59.42-71.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)
sparkfun_thing_plus_nrf9160.dts.pre.tmp:311.19-317.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)
-- Generated zephyr.dts: /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/build/zephyr/include/generated/device_extern.h
Parsing /home/ted/projects/embedded/ncs/zephyr/Kconfig
Loaded configuration '/home/ted/projects/embedded/ncs/zephyr/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_defconfig'
Merged configuration '/home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/prj.conf'
/home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/prj.conf:7: warning: attempt to assign the value 'y' to the undefined symbol KX132_1211
error: Aborting due to Kconfig warnings
CMake Error at /home/ted/projects/embedded/ncs/zephyr/cmake/kconfig.cmake:264 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/ted/projects/embedded/ncs/zephyr/cmake/app/boilerplate.cmake:555 (include)
/home/ted/projects/embedded/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/home/ted/projects/embedded/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart/build -S/home/ted/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart -GNinja -DBOARD=sparkfun_thing_plus_nrf9160
ted@localhost:~/projects/embedded/ncs/zephyr/samples/sandbox-de-ted/blink-plus-uart$