Hi,
Confirm that adding nrf21540-related FEM definitions in nrf5340dk_nrf5340_cpunet.overlay will cause the build result to fail . There is no such abnormal problem in SDK2.0.0. This problem only appeared in SDK2.3.0. How to eliminate the abnormal problem that occurs when SDK2.3.0 executes Build?
//Terminal Result:
* Executing task: nRF Connect: Build [pristine]: radio_test_v230_nrf5340/build (active)
Building radio_test_v230_nrf5340
west build --build-dir c:\nRF_V230_VS\uart_40x\radio_test_v230_nrf5340\build c:\nRF_V230_VS\uart_40x\radio_test_v230_nrf5340 --pristine --board nrf5340dk_nrf5340_cpunet -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340;c:/nRF_V230_VS/uart_40x/radio_test_v230;c:/nRF_V230_VS/uart_40x/radio_test_o" -DDTC_OVERLAY_FILE:STRING="c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/boards/nrf5340dk_nrf5340_cpunet.overlay" -DCONF_FILE:STRING="c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/prj_nrf5340dk_nrf5340_cpunet.conf"
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340
-- Found Python3: C:/V2.3.0/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/V2.3.0/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/V2.3.0/v2.3.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
CMake Warning at C:/V2.3.0/v2.3.0/zephyr/cmake/modules/boards.cmake:88 (message):
BOARD_ROOT element without a 'boards' subdirectory:
c:/nRF_V230_VS/uart_40x/radio_test_o
Hints:
- if your board directory is '/foo/bar/boards/<ARCH>/my_board' then add '/foo/bar' to BOARD_ROOT, not the entire board directory
- if in doubt, use absolute paths
Call Stack (most recent call first):
C:/V2.3.0/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:32 (find_package)
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.15.2 (C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: C:/V2.3.0/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/V2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Found devicetree overlay: c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/boards/nrf5340dk_nrf5340_cpunet.overlay
'label' is marked as deprecated in 'properties:' in C:/V2.3.0/v2.3.0/zephyr/dts/bindings\net\wireless\nordic,nrf21540-fem-spi.yaml for node /soc/spi@41013000/nrf21540_fem_spi@0.
-- Generated zephyr.dts: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/zephyr/dts.cmake
Parsing C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/Kconfig
Loaded configuration 'C:/V2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration 'c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/prj_nrf5340dk_nrf5340_cpunet.conf'
Configuration saved to 'C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/zephyr/.config'
Kconfig header saved to 'C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
=== child image remote_shell - CPUAPP begin ===
loading initial cache file C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: C:/V2.3.0/v2.3.0/nrf/samples/nrf5340/remote_shell
-- Found Python3: C:/V2.3.0/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/V2.3.0/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/V2.3.0/v2.3.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.15.2 (C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: C:/V2.3.0/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/V2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: C:/V2.3.0/v2.3.0/nrf/samples/nrf5340/remote_shell/boards/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/zephyr/dts.cmake
Parsing C:/V2.3.0/v2.3.0/nrf/samples/nrf5340/remote_shell/Kconfig
Loaded configuration 'C:/V2.3.0/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/V2.3.0/v2.3.0/nrf/samples/nrf5340/remote_shell/prj.conf'
Merged configuration 'C:/V2.3.0/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to 'C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/zephyr/.config'
Kconfig header saved to 'C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/V2.3.0/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- libmetal version: 1.3.0 (C:/V2.3.0/v2.3.0/nrf/samples/nrf5340/remote_shell)
-- Looking for include file stdatomic.h
-- Build type:
-- Host: Windows/AMD64
-- Target: Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.3.0 (C:/V2.3.0/v2.3.0/modules/lib/open-amp/open-amp)
-- Host: Windows/AMD64
-- Target: Generic/arm
-- Machine: arm
-- C_FLAGS : -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/build/remote_shell
=== child image remote_shell - CPUAPP end ===
-- libmetal version: 1.3.0 (C:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340)
-- Build type:
-- Host: Windows/AMD64
-- Target: Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.3.0 (C:/V2.3.0/v2.3.0/modules/lib/open-amp/open-amp)
-- Looking for include file fcntl.h
-- Host: Windows/AMD64
-- Target: Generic/arm
-- Machine: arm
-- C_FLAGS : -Wall -Wextra
-- Looking for include file fcntl.h - found
-- Configuring done
CMake Error at C:/V2.3.0/v2.3.0/zephyr/cmake/modules/extensions.cmake:418 (add_library):
Cannot find source file:
../../bluetooth/direct_test_mode/src/fem/fem.c
Call Stack (most recent call first):
C:/V2.3.0/v2.3.0/zephyr/cmake/modules/kernel.cmake:209 (zephyr_library_named)
C:/V2.3.0/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:32 (find_package)
CMake Error at C:/V2.3.0/v2.3.0/zephyr/cmake/modules/extensions.cmake:418 (add_library):
No SOURCES given to target: app
Call Stack (most recent call first):
C:/V2.3.0/v2.3.0/zephyr/cmake/modules/kernel.cmake:209 (zephyr_library_named)
C:/V2.3.0/v2.3.0/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/V2.3.0/v2.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:32 (find_package)
CMake Generate step failed. Build files cannot be regenerated correctly.
FATAL ERROR: command exited with status 1: 'c:\V2.3.0\toolchains\v2.3.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\V2.3.0\toolchains\v2.3.0\opt\bin\python.exe' '-Bc:\nRF_V230_VS\uart_40x\radio_test_v230_nrf5340\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpunet -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-DBOARD_ROOT:STRING=c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340;c:/nRF_V230_VS/uart_40x/radio_test_v230;c:/nRF_V230_VS/uart_40x/radio_test_o' -DDTC_OVERLAY_FILE:STRING=c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/boards/nrf5340dk_nrf5340_cpunet.overlay -DCONF_FILE:STRING=c:/nRF_V230_VS/uart_40x/radio_test_v230_nrf5340/prj_nrf5340dk_nrf5340_cpunet.conf '-Sc:\nRF_V230_VS\uart_40x\radio_test_v230_nrf5340'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Any help would be appreciated.
Best regards,
Lulu.C