I have a question about nrf7002 custom board.

Hello.
We are developing custom boards with the configuration of nrf5340 + nrf7002.

In the previous sta example, a build error occurs when the "Board Target" in "build configuration" is set to "custom board".

("nRF7002dk/nrf5340/cpuapp" will build normally)

I'm inquiring about how to resolve it.

/dts-v1/;
#include <nordic/nrf5340_cpuapp_qkaa.dtsi>
#include "SC50-pinctrl.dtsi"

/ {
	model = "Custom Board auto generated by nRF Connect for VS Code (CPUAPP)";
	compatible = "Algorigo,custom-board-name-cpuapp";

	chosen {
		zephyr,sram = &sram0_image;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
		zephyr,sram-secure-partition = &sram0_s;
		zephyr,sram-non-secure-partition = &sram0_ns;
		zephyr,wifi = &nordic_wlan0;
	};
 
	nrf70_tx_power_ceiling: nrf70_tx_power_ceiling_node {
		status = "okay";
		compatible = "nordic,nrf700x-tx-power-ceiling";
		max-pwr-2g-dsss = <0x54>;
		max-pwr-2g-mcs0 = <0x40>;
		max-pwr-2g-mcs7 = <0x40>;
		max-pwr-5g-low-mcs0 = <0x24>;
		max-pwr-5g-low-mcs7 = <0x24>;
		max-pwr-5g-mid-mcs0 = <0x2C>;
		max-pwr-5g-mid-mcs7 = <0x2C>;
		max-pwr-5g-high-mcs0 = <0x34>;
		max-pwr-5g-high-mcs7 = <0x34>;
	};
};
 
&timer0 {
	status = "okay";
};

&adc {
   #address-cells = <1>;
   #size-cells = <0>;
   status = "okay";

   channel@0 {
	   reg = <0>;
	   zephyr,gain = "ADC_GAIN_1_6";
	   zephyr,reference = "ADC_REF_VDD_1_4";
	   zephyr,acquisition-time = <0>;
	   zephyr,resolution = <14>;
	   zephyr,input-positive = <NRF_SAADC_AIN0>;
   };
   channel@1 {
	   reg = <1>;
	   zephyr,gain = "ADC_GAIN_1_6";
	   zephyr,reference = "ADC_REF_VDD_1_4";
	   zephyr,acquisition-time = <0>;
	   zephyr,resolution = <12>;
	   zephyr,input-positive = <NRF_SAADC_AIN1>;
   };
};

&gpio0 {
   status = "okay";
};

&gpio1 {
   status = "okay";
};


/ {
   zephyr,user {
	   io-channels = <&adc 0>, <&adc 1>;
	   
	   DT1-gpios = <&gpio1 11 0>;
	   DT2-gpios = <&gpio1 13 0>;
	   DT3-gpios = <&gpio0 7 0>;
	   DT4-gpios = <&gpio0 25 0>;

	   BAT_EN-gpios = <&gpio0 6 0>;
   };
};

&wdt {
   status = "okay";
};

// #include "SC50-cpuapp_partitioning.dtsi"
// #include "SC50-shared_sram.dtsi"

&pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = <NRF_PSEL(UART_TX, 0, 20)>,
				<NRF_PSEL(UART_RTS, 0, 19)>;
		};
		group2 {
			psels = <NRF_PSEL(UART_RX, 0, 22)>,
				<NRF_PSEL(UART_CTS, 0, 21)>;
			bias-pull-up;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = <NRF_PSEL(UART_TX, 0, 20)>,
				<NRF_PSEL(UART_RX, 0, 22)>,
				<NRF_PSEL(UART_RTS, 0, 19)>,
				<NRF_PSEL(UART_CTS, 0, 21)>;
			low-power-enable;
		};
	};

	pwm0_default: pwm0_default {
		group1 {
			psels = <NRF_PSEL(PWM_OUT0, 1, 6)>;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			psels = <NRF_PSEL(PWM_OUT0, 1, 6)>;
			low-power-enable;
		};
	};

	qspi_default: qspi_default {
		group1 {
			psels = <NRF_PSEL(QSPI_SCK, 0, 17)>,
				<NRF_PSEL(QSPI_IO0, 0, 13)>,
				<NRF_PSEL(QSPI_IO1, 0, 14)>,
				<NRF_PSEL(QSPI_IO2, 0, 15)>,
				<NRF_PSEL(QSPI_IO3, 0, 16)>,
				<NRF_PSEL(QSPI_CSN, 0, 18)>;
		};
	};

	qspi_sleep: qspi_sleep {
		group1 {
			psels = <NRF_PSEL(QSPI_SCK, 0, 17)>,
				<NRF_PSEL(QSPI_IO0, 0, 13)>,
				<NRF_PSEL(QSPI_IO1, 0, 14)>,
				<NRF_PSEL(QSPI_IO2, 0, 15)>,
				<NRF_PSEL(QSPI_IO3, 0, 16)>,
				<NRF_PSEL(QSPI_CSN, 0, 18)>;
			low-power-enable;
		};
	};

	uart1_default: uart1_default {
		group1 {
			psels = <NRF_PSEL(UART_TX, 1, 1)>;
		};
		group2 {
			psels = <NRF_PSEL(UART_RX, 1, 0)>;
			bias-pull-up;
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = <NRF_PSEL(UART_TX, 1, 1)>,
				<NRF_PSEL(UART_RX, 1, 0)>;
			low-power-enable;
		};
	};

	spi3_default: spi3_default {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
				<NRF_PSEL(SPIM_MISO, 1, 14)>,
				<NRF_PSEL(SPIM_MOSI, 1, 13)>;
		};
	};

	spi3_sleep: spi3_sleep {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
				<NRF_PSEL(SPIM_MISO, 1, 14)>,
				<NRF_PSEL(SPIM_MOSI, 1, 13)>;
			low-power-enable;
		};
	};

	spi4_default: spi4_default {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
				<NRF_PSEL(SPIM_MISO, 0, 10)>,
				<NRF_PSEL(SPIM_MOSI, 0, 9)>;
		};
	};

	spi4_sleep: spi4_sleep {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
				<NRF_PSEL(SPIM_MISO, 0, 10)>,
				<NRF_PSEL(SPIM_MOSI, 0, 9)>;
			low-power-enable;
		};
	};
	
	// spi2_default: spi2_default {
	// 	group1 {
	// 		psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
	// 			<NRF_PSEL(SPIM_MISO, 1, 14)>,
	// 			<NRF_PSEL(SPIM_MOSI, 1, 13)>;
	// 	};
	// };

	// spi2_sleep: spi2_sleep {
	// 	group1 {
	// 		psels = <NRF_PSEL(SPIM_SCK, 1, 15)>,
	// 			<NRF_PSEL(SPIM_MISO, 1, 14)>,
	// 			<NRF_PSEL(SPIM_MOSI, 1, 13)>;
	// 		low-power-enable;
	// 	};
	// };

};

/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

 / {
 
	 chosen {
		 zephyr,console = &uart0;
		 zephyr,shell-uart = &uart0;
		 zephyr,uart-mcumgr = &uart0;
		 zephyr,bt-mon-uart = &uart0;
		 zephyr,bt-c2h-uart = &uart0;
		 zephyr,bt-hci-ipc = &ipc0;
		 nordic,802154-spinel-ipc = &ipc0;
		 zephyr,ieee802154 = &ieee802154;
	 };
 
	 leds {
		 compatible = "gpio-leds";
		 led0: led_0 {
			 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
			 label = "Green LED 0";
		 };
		 led1: led_1 {
			 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
			 label = "Green LED 1";
		 };
	 };
 
	 pwmleds {
		 compatible = "pwm-leds";
		 pwm_led0: pwm_led_0 {
			 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
		 };
	 };
 
	 buttons {
		 compatible = "gpio-keys";
		 button0: button_0 {
			 gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			 label = "Push button 1";
		 };
		 button1: button_1 {
			 gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			 label = "Push button 2";
		 };
	 };
 
	 gpio_fwd: nrf-gpio-forwarder {
		 compatible = "nordic,nrf-gpio-forwarder";
		 status = "okay";
		 uart {
			 gpios = <&gpio1 1 0>, <&gpio1 0 0>, <&gpio1 5 0>, <&gpio1 4 0>;
		 };
	 };
 
	 nrf_radio_coex: nrf7002-coex {
		 status = "okay";
		 compatible = "nordic,nrf700x-coex";
		 req-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
		 status0-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
		 grant-gpios = <&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
		 swctrl1-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
		 srrf-switch-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
	 };
 
	 nordic_wlan0: nordic_wlan0 {
		 compatible = "nordic,wlan0";
		 status = "okay";
	 };
 
	 /* These aliases are provided for compatibility with samples */
	 aliases {
		 led0 = &led0;
		 led1 = &led1;
		 pwm-led0 = &pwm_led0;
		 sw0 = &button0;
		 sw1 = &button1;
		 bootloader-led0 = &led0;
		 mcuboot-button0 = &button0;
		 mcuboot-led0 = &led0;
	 };
 };
 
 &adc {
	 status = "okay";
 };
 
 &gpiote {
	 status = "okay";
 };
 
 &gpio0 {
	 status = "okay";
 };
 
 &gpio1 {
	 status = "okay";
 };
 
 &uart0 {
	 status = "okay";
	 current-speed = <115200>;
	 pinctrl-0 = <&uart0_default>;
	 pinctrl-1 = <&uart0_sleep>;
	 pinctrl-names = "default", "sleep";
 };
 
 &pwm0 {
	 status = "okay";
	 pinctrl-0 = <&pwm0_default>;
	 pinctrl-1 = <&pwm0_sleep>;
	 pinctrl-names = "default", "sleep";
 };
 
 &spi4 {
	 compatible = "nordic,nrf-spim";
	 status = "okay";
	 pinctrl-0 = <&spi4_default>;
	 pinctrl-1 = <&spi4_sleep>;
	 pinctrl-names = "default", "sleep";
	 cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
	 mx25r64: mx25r6435f@0 {
		 compatible = "jedec,spi-nor";
		 reg = <0>;
		 spi-max-frequency = <33000000>;
		 jedec-id = [c2 28 17];
		 sfdp-bfp = [
			 e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb
			 ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
			 10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44
			 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
		 ];
		 size = <67108864>;
		 has-dpd;
		 t-enter-dpd = <10000>;
		 t-exit-dpd = <5000>;
	 };
 };
 
 &qspi {
	 status = "okay";
 
	 pinctrl-0 = <&qspi_default>;
	 pinctrl-1 = <&qspi_sleep>;
	 pinctrl-names = "default", "sleep";
	 nrf700x: nrf7002@1 {
		 status = "okay";
		 compatible = "nordic,nrf700x-qspi";
		 reg = <1>;
		 sck-frequency = <24000000>;
		 quad-mode;
		 /* Wi-Fi Pins used */
		 iovdd-ctrl-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
		 bucken-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
		 host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
	 };
 };
 
 &flash0 {
 
	 partitions {
		 compatible = "fixed-partitions";
		 #address-cells = <1>;
		 #size-cells = <1>;
 
		 boot_partition: partition@0 {
			 label = "mcuboot";
			 reg = <0x00000000 0x00010000>;
		 };
		 slot0_partition: partition@10000 {
			 label = "image-0";
		 };
		 slot0_ns_partition: partition@50000 {
			 label = "image-0-nonsecure";
		 };
		 slot1_partition: partition@80000 {
			 label = "image-1";
		 };
		 slot1_ns_partition: partition@c0000 {
			 label = "image-1-nonsecure";
		 };
		 scratch_partition: partition@f0000 {
			 label = "image-scratch";
			 reg = <0x000f0000 0xa000>;
		 };
		 storage_partition: partition@fa000 {
			 label = "storage";
			 reg = <0x000fa000 0x00006000>;
		 };
	 };
 };
 
 &ieee802154 {
	 status = "okay";
 };
 
 zephyr_udc0: &usbd {
	 compatible = "nordic,nrf-usbd";
	 status = "okay";
 };
 
 / {
 
	 reserved-memory {
		 #address-cells = <1>;
		 #size-cells = <1>;
		 ranges;
 
		 sram0_image: image@20000000 {
			 /* Zephyr image(s) memory */
		 };
 
		 sram0_s: image_s@20000000 {
			 /* Secure image memory */
		 };
 
		 sram0_ns: image_ns@20040000 {
			 /* Non-Secure image memory */
		 };
	 };
 };
 
/*
 * Copyright (c) 2022 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/*
 * Default Flash planning for nrf7002dk_nrf5340 CPUAPP (Application MCU).
 *
 * Zephyr build for nRF5340 with ARM TrustZone-M support,
 * implies building Secure and Non-Secure Zephyr images.
 *
 * Secure image will be placed, by default, in flash0
 * (or in slot0, if MCUboot is present).
 * Secure image will use sram0 for system memory.
 *
 * Non-Secure image will be placed in slot0_ns, and use
 * sram0_ns for system memory.
 *
 * Note that the Secure image only requires knowledge of
 * the beginning of the Non-Secure image (not its size).
 */

 &slot0_partition {
	reg = <0x00010000 0x40000>;
};

&slot0_ns_partition {
	reg = <0x00050000 0x30000>;
};

&slot1_partition {
	reg = <0x00080000 0x40000>;
};

&slot1_ns_partition {
	reg = <0x000c0000 0x30000>;
};

/* Default SRAM planning when building for nRF5340 with
 * ARM TrustZone-M support
 * - Lowest 256 kB SRAM allocated to Secure image (sram0_s)
 * - Middle 192 kB allocated to Non-Secure image (sram0_ns)
 * - Upper 64 kB SRAM allocated as Shared memory (sram0_shared)
 *   (see nrf5340_shared_sram_planning_conf.dts)
 */
&sram0_image {
	reg = <0x20000000 DT_SIZE_K(448)>;
};

&sram0_s {
	reg = <0x20000000 DT_SIZE_K(256)>;
};

&sram0_ns {
	reg = <0x20040000 DT_SIZE_K(192)>;
};

/ {
	chosen {
		/* shared memory reserved for the inter-processor communication */
		zephyr,ipc_shm = &sram0_shared;
	};

	reserved-memory {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		sram0_shared: memory@20070000 {
			/* SRAM allocated to shared memory */
			reg = <0x20070000 0x10000>;
		};
	};
};


 

* Executing task: nRF Connect: Build: Algo_SC50_241114/build (active)

Building Algo_SC50_241114
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/Workspace/Nordic/Algo_SC50_241114/build c:/Workspace/Nordic/Algo_SC50_241114"

[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/Workspace/Nordic/Algo_SC50_241114
-- CMake version: 3.21.0
-- Cache files will be written to: C:/ncs/v2.7.0/zephyr/.cache
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: SC50, qualifiers: nrf5340/cpuapp
-- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/boards/Algorigo/SC50/SC50_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/dts.cmake
Parsing C:/Workspace/Nordic/Algo_SC50_241114/Kconfig
Loaded configuration 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/.config'
No change to configuration in 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/.config'
No change to Kconfig header in 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/autoconf.h'
CMake Warning at C:/ncs/v2.7.0/zephyr/CMakeLists.txt:895 (message):
No SOURCES given to Zephyr library: drivers__mbox

Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Workspace/Nordic/Algo_SC50_241114/build
[108/113] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D C:\Workspace\Nordic\Algo_SC50_241114\build\zephyr && C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/nrf5340/libsoc__nordic.a(sync_rtc.c.obj): in function `sync_rtc_setup':
C:/ncs/v2.7.0/zephyr/soc/nordic/nrf53/sync_rtc.c:234: undefined reference to `__device_dts_ord_27'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' --build 'c:\Workspace\Nordic\Algo_SC50_241114\build'

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

* Executing task: nRF Connect: Build [clean]: Algo_SC50_241114/build (active)

Building Algo_SC50_241114
C:\Windows\system32\cmd.exe /d /s /c "west build -t clean --build-dir c:/Workspace/Nordic/Algo_SC50_241114/build"

-- west build: running target clean
[2/2] Cleaning all built files...
Cleaning... 441 files.
* Terminal will be reused by tasks, press any key to close it.

* Executing task: nRF Connect: Build [pristine]: Algo_SC50_241114/build (active)

Building Algo_SC50_241114
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/Workspace/Nordic/Algo_SC50_241114/build c:/Workspace/Nordic/Algo_SC50_241114 --pristine --board SC50/nrf5340/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Workspace/Nordic/Algo_SC50_241114
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.7.0/zephyr/.cache
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: SC50, qualifiers: nrf5340/cpuapp
-- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/ce3b5ff664/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/boards/Algorigo/SC50/SC50_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/dts.cmake
Parsing C:/Workspace/Nordic/Algo_SC50_241114/Kconfig
Loaded configuration 'C:/ncs/boards/Algorigo/SC50/SC50_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/Workspace/Nordic/Algo_SC50_241114/prj.conf'
Configuration saved to 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/.config'
Kconfig header saved to 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.7.0/zephyr/CMakeLists.txt:895 (message):
No SOURCES given to Zephyr library: drivers__mbox

Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Workspace/Nordic/Algo_SC50_241114/build
-- west build: building application
[4/440] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[153/440] Building C object CMakeFiles/app.dir/src/Algo/TCP_Client.c.obj
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/TCP_Client.c: In function 'TCP_Client':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/TCP_Client.c:57:13: warning: unused variable 'missingBytesToSend' [-Wunused-variable]
57 | int missingBytesToSend = sizeof( TCPClientMessage );
| ^~~~~~~~~~~~~~~~~~
[154/440] Building C object CMakeFiles/app.dir/src/Algo/ADC.c.obj
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c: In function 'gpio_set':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:89:31: warning: passing argument 1 of 'gpio_is_ready_dt' from incompatible pointer type [-Wincompatible-pointer-types]
89 | if (!gpio_is_ready_dt(&My_gpios)) {
| ^~~~~~~~~
| |
| const struct gpio_dt_spec (*)[5]
In file included from C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:11:
C:/ncs/v2.7.0/zephyr/include/zephyr/drivers/gpio.h:835:64: note: expected 'const struct gpio_dt_spec *' but argument is of type 'const struct gpio_dt_spec (*)[5]'
835 | static inline bool gpio_is_ready_dt(const struct gpio_dt_spec *spec)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:90:24: warning: 'return' with a value, in function returning void [-Wreturn-type]
90 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:87:6: note: declared here
87 | void gpio_set(void)
| ^~~~~~~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c: In function 'ADC':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:128:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
128 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:134:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
134 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:146:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
146 | return err;
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:138:13: warning: unused variable 'ret' [-Wunused-variable]
138 | int ret;
| ^~~
[435/440] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D C:\Workspace\Nordic\Algo_SC50_241114\build\zephyr && C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/nrf5340/libsoc__nordic.a(sync_rtc.c.obj): in function `sync_rtc_setup':
C:/ncs/v2.7.0/zephyr/soc/nordic/nrf53/sync_rtc.c:234: undefined reference to `__device_dts_ord_27'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' --build 'c:\Workspace\Nordic\Algo_SC50_241114\build'

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

* Executing task: nRF Connect: Build [pristine]: Algo_SC50_241114/build (active)

Building Algo_SC50_241114
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/Workspace/Nordic/Algo_SC50_241114/build c:/Workspace/Nordic/Algo_SC50_241114 --pristine --board SC50/nrf5340/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Workspace/Nordic/Algo_SC50_241114
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.7.0/zephyr/.cache
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: SC50, qualifiers: nrf5340/cpuapp
-- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/ce3b5ff664/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/boards/Algorigo/SC50/SC50_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/dts.cmake
Parsing C:/Workspace/Nordic/Algo_SC50_241114/Kconfig
Loaded configuration 'C:/ncs/boards/Algorigo/SC50/SC50_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/Workspace/Nordic/Algo_SC50_241114/prj.conf'
Configuration saved to 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/.config'
Kconfig header saved to 'C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.7.0/zephyr/CMakeLists.txt:895 (message):
No SOURCES given to Zephyr library: drivers__mbox

Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Workspace/Nordic/Algo_SC50_241114/build
-- west build: building application
[4/440] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[145/440] Building C object CMakeFiles/app.dir/src/Algo/ADC.c.obj
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c: In function 'gpio_set':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:89:31: warning: passing argument 1 of 'gpio_is_ready_dt' from incompatible pointer type [-Wincompatible-pointer-types]
89 | if (!gpio_is_ready_dt(&My_gpios)) {
| ^~~~~~~~~
| |
| const struct gpio_dt_spec (*)[5]
In file included from C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:11:
C:/ncs/v2.7.0/zephyr/include/zephyr/drivers/gpio.h:835:64: note: expected 'const struct gpio_dt_spec *' but argument is of type 'const struct gpio_dt_spec (*)[5]'
835 | static inline bool gpio_is_ready_dt(const struct gpio_dt_spec *spec)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:90:24: warning: 'return' with a value, in function returning void [-Wreturn-type]
90 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:87:6: note: declared here
87 | void gpio_set(void)
| ^~~~~~~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c: In function 'ADC':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:128:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
128 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:134:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
134 | return 0;
| ^
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:146:32: warning: 'return' with a value, in function returning void [-Wreturn-type]
146 | return err;
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:113:6: note: declared here
113 | void ADC( void )
| ^~~
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/ADC.c:138:13: warning: unused variable 'ret' [-Wunused-variable]
138 | int ret;
| ^~~
[149/440] Building C object CMakeFiles/app.dir/src/Algo/TCP_Client.c.obj
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/TCP_Client.c: In function 'TCP_Client':
C:/Workspace/Nordic/Algo_SC50_241114/src/Algo/TCP_Client.c:57:13: warning: unused variable 'missingBytesToSend' [-Wunused-variable]
57 | int missingBytesToSend = sizeof( TCPClientMessage );
| ^~~~~~~~~~~~~~~~~~
[435/440] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/Workspace/Nordic/Algo_SC50_241114/build/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf && cmd.exe /C "cd /D C:\Workspace\Nordic\Algo_SC50_241114\build\zephyr && C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/nrf5340/libsoc__nordic.a(sync_rtc.c.obj): in function `sync_rtc_setup':
C:/ncs/v2.7.0/zephyr/soc/nordic/nrf53/sync_rtc.c:234: undefined reference to `__device_dts_ord_27'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' --build 'c:\Workspace\Nordic\Algo_SC50_241114\build'

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

Related