Connect SDK: check_init_priorities.py: ValueError: ERROR: device 56 (/soc/spi@40003000) already defined

Hi

When building (or to be precise, after building the binary) my project with a custom board i get:

Traceback (most recent call last):
File "/home/bearsh/projects/nrf-msr175+/external/zephyr/scripts/build/check_init_priorities.py", line 361, in <module>
sys.exit(main(sys.argv[1:]))
File "/home/bearsh/projects/nrf-msr175+/external/zephyr/scripts/build/check_init_priorities.py", line 346, in main
validator = Validator(args.build_dir, args.edt_pickle, log)
File "/home/bearsh/projects/nrf-msr175+/external/zephyr/scripts/build/check_init_priorities.py", line 217, in __init__
raise ValueError(
ValueError: ERROR: device 56 (/soc/spi@40003000) already defined
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/bearsh/ncs/toolchains/7795df4459/usr/local/bin/cmake --build /home/bearsh/projects/nrf-msr175+/application/build

my boards dts looks like:

// Copyright (c) 2024 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0

/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "nina-b3_msr-a11-pinctrl.dtsi"

/ {
model = "ninaB3-msrA11";
compatible = "nordic,nina-b3-msr-a11", "nordic,nrf52840-qiaa", "nordic,nrf52840";

chosen {
//zephyr,uart-mcumgr = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};

gpios {
compatible = "gpio-leds";
msp_isr: msp_isr {
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
label = "Interrupt from msp";
};
};

aliases {
msp-isr = &msp_isr;
};
};

&uicr {
gpio-as-nreset;
};

&gpio0 {
status = "okay";
};

&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
/delete-property/ hw-flow-control;

lpuart: nrf-sw-lpuart {
compatible = "nordic,nrf-sw-lpuart";
status = "okay";
req-pin = <14>;
rdy-pin = <13>;
};
};

spi_slave: &spi0 {
compatible = "nordic,nrf-spis";
// Cannot be used together with i2c0.
status = "okay";
cs-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
def-char = <0>;
};

&ieee802154 {
status = "okay";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 0xc000>;
};
slot0_partition: partition@c000 {
label = "image-0";
reg = <0xc000 0x72000>;
};
slot1_partition: partition@7e000 {
label = "image-1";
reg = <0x7e000 0x72000>;
};
scratch_partition: partition@f0000 {
label = "image-scratch";
reg = <0xf0000 0xa000>;
};
storage_partition: partition@fa000 {
label = "storage";
reg = <0xfa000 0x6000>;
};
};
};

My application need to act as an spi slave
Parents Reply Children
Related