Build configuration is changed by the build process. I am working with the telnet sample.

I am having trouble with “shield not found” related to this is a problem where the build toolchain modifies my build configuration.

I am working on macOS Sonata 14.2 on a MacMini M2.

My target is a nrf52840dk_nrf52840/nrf7002ek combination.

I am working with the sample telnet application.

This is my build configuration:

When I hit configure build, I get the following:

Building telnet
west build --build-dir /Users/jerry/MyApps/telnet/build /Users/jerry/MyApps/telnet --pristine --board nrf52840dk_nrf52840 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/Users/jerry/MyApps/telnet/prj.conf -DEXTRA_CONF_FILE=overlay-nrf700x.conf -DBOARD_ROOT=/Users/jerry/MyApps/mqtt

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/jerry/MyApps/telnet
-- CMake version: 3.20.5
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /Users/jerry/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/Users/jerry/zephyrproject/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/jerry/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /Users/jerry/MyApps/telnet/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/jerry/MyApps/telnet/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/jerry/MyApps/telnet/build/zephyr/dts.cmake

warning: NET_ARP (defined at subsys/net/l2/ethernet/Kconfig:40) was assigned the value 'y' but got
the value 'n'. Check these unsatisfied dependencies: NET_L2_ETHERNET (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look up NET_ARP in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


/Users/jerry/MyApps/telnet/prj.conf:38: warning: attempt to assign the value 'y' to the undefined symbol WIFI_CREDENTIALS

/Users/jerry/MyApps/telnet/prj.conf:39: warning: attempt to assign the value 'y' to the undefined symbol WIFI_CREDENTIALS_STATIC

/Users/jerry/MyApps/telnet/prj.conf:40: warning: attempt to assign the value '"ATTbwhxjPv"' to the undefined symbol WIFI_CREDENTIALS_STATIC_SSID

/Users/jerry/MyApps/telnet/prj.conf:41: warning: attempt to assign the value '"a2n38dmjyfg8"' to the undefined symbol WIFI_CREDENTIALS_STATIC_PASSWORD

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:3: warning: attempt to assign the value 'y' to the undefined symbol WIFI_NRF700X

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:4: warning: attempt to assign the value 'y' to the undefined symbol WPA_SUPP

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:15: warning: attempt to assign the value 'y' to the undefined symbol WIFI_CREDENTIALS

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:16: warning: attempt to assign the value 'y' to the undefined symbol WIFI_CREDENTIALS_STATIC

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:17: warning: attempt to assign the value '"ATTbwhxjPv"' to the undefined symbol WIFI_CREDENTIALS_STATIC_SSID

/Users/jerry/MyApps/telnet/overlay-nrf700x.conf:18: warning: attempt to assign the value '"a2n38dmjyfg8"' to the undefined symbol WIFI_CREDENTIALS_STATIC_PASSWORD

error: Aborting due to Kconfig warnings

Parsing /Users/jerry/zephyrproject/zephyr/Kconfig
Loaded configuration '/Users/jerry/zephyrproject/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration '/Users/jerry/MyApps/telnet/prj.conf'
Merged configuration '/Users/jerry/MyApps/telnet/overlay-nrf700x.conf'
CMake Error at /Users/jerry/zephyrproject/zephyr/cmake/modules/kconfig.cmake:355 (message):
command failed with return code: 1
Call Stack (most recent call first):
/Users/jerry/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/Users/jerry/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/Users/jerry/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: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 -B/Users/jerry/MyApps/telnet/build -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/Users/jerry/MyApps/telnet/prj.conf -DEXTRA_CONF_FILE=overlay-nrf700x.conf -DBOARD_ROOT=/Users/jerry/MyApps/mqtt -S/Users/jerry/MyApps/telnet

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

* Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for /Users/jerry/MyApps/telnet

Building telnet
west build --build-dir /Users/jerry/MyApps/telnet/build /Users/jerry/MyApps/telnet --pristine --board nrf52840dk_nrf52840 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/Users/jerry/MyApps/telnet/prj.conf -DEXTRA_CONF_FILE=overlay-nrf700x.conf -DBOARD_ROOT=/Users/jerry/MyApps/mqtt -DSHIELD=nrf7002e

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/jerry/MyApps/telnet
-- CMake version: 3.20.5
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /Users/jerry/Library/Caches/zephyr
-- Zephyr version: 3.5.99 (/Users/jerry/zephyrproject/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf52840dk_nrf52840
-- Shield(s): nrf7002e
SHIELD = nrf7002e
SHIELD = nrf7002e
No shield named 'nrf7002e' found
Please choose from among the following shields:
adafruit_2_8_tft_touch_v2
adafruit_2_8_tft_touch_v2_nano
adafruit_can_picowbell
adafruit_data_logger
adafruit_pca9685
adafruit_winc1500
amg88xx_eval_kit
amg88xx_grid_eye_eval_shield
arceli_eth_w5500
arduino_uno_click
atmel_rf2xx
atmel_rf2xx_arduino
atmel_rf2xx_legacy
atmel_rf2xx_mikrobus
atmel_rf2xx_xplained
atmel_rf2xx_xpro
boostxl_ulpsense
buydisplay_2_8_tft_touch_arduino
buydisplay_3_5_tft_touch_arduino
dac80508_evm
dfrobot_can_bus_v2_0
esp_8266
esp_8266_arduino
esp_8266_mikrobus
frdm_cr20a
frdm_kw41z
frdm_stbc_agm01
ftdi_vm800c
g1120b0mipi
inventek_eswifi
inventek_eswifi_arduino_spi
inventek_eswifi_arduino_uart
keyestudio_can_bus_ks0411
link_board_eth
lmp90100_evb
ls013b7dh03
m5stack_core2_ext
max7219_8x8
mikroe_accel13_click
mikroe_adc_click
mikroe_eth_click
mikroe_mcp2518fd_click
mikroe_wifi_bt_click
mikroe_wifi_bt_click_arduino
mikroe_wifi_bt_click_mikrobus
npm1100_ek
npm1300_ek
npm6001_ek
rk055hdmipi4m
rk055hdmipi4ma0
semtech_sx1262mb2das
semtech_sx1272mb2das
semtech_sx1276mb1mas
sh1106_128x64
sparkfun_max3421e
sparkfun_sara_r4
ssd1306_128x32
ssd1306_128x64
ssd1306_128x64_spi
st7735r_ada_160x128
st7789v_tl019fqv01
st7789v_waveshare_240x240
st_b_lcd40_dsi1_mb1166
tcan4550evm
ti_bp_bassensorsmkii
v2c_daplink
v2c_daplink_cfg
waveshare_epaper_gdeh0154a07
waveshare_epaper_gdeh0213b1
waveshare_epaper_gdeh0213b72
waveshare_epaper_gdeh029a1
waveshare_epaper_gdew042t2
waveshare_epaper_gdew042t2-p
waveshare_epaper_gdew075t7
waveshare_pico_ups_b
wnc_m14a2a
x_nucleo_53l0a1
x_nucleo_eeprma2
x_nucleo_idb05a1
x_nucleo_iks01a1
x_nucleo_iks01a2
x_nucleo_iks01a2_shub
x_nucleo_iks01a3
x_nucleo_iks01a3_shub
x_nucleo_iks02a1
x_nucleo_iks02a1_mic
x_nucleo_iks02a1_shub
CMake Error at /Users/jerry/zephyrproject/zephyr/cmake/modules/shields.cmake:135 (message):
Invalid SHIELD; see above.
Call Stack (most recent call first):
/Users/jerry/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/Users/jerry/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/Users/jerry/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: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 -B/Users/jerry/MyApps/telnet/build -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/Users/jerry/MyApps/telnet/prj.conf -DEXTRA_CONF_FILE=overlay-nrf700x.conf -DBOARD_ROOT=/Users/jerry/MyApps/mqtt -DSHIELD=nrf7002e -S/Users/jerry/MyApps/telnet

Now my build configuration has been changed as it appears as follows:

Note the differences in the CMake arguments!

I am baffled, befuddled, and bewildered!

Any help will be rewarded with positive thoughts and prayers.

Regards,

Jerry

Related