device.h:89:41: error: '__device_dts_ord_109' undeclared here (not in a function);

Hi,

I am trying to build an app for nRF5340 and I am getting the above error. When I look into my 'C:\Projects\nrf\nrf5340_coap\build\zephyr\include\generated\devicetree_generated.h', I see the following at node 109.

 *   109 /soc/peripheral@40000000/spi@b000
When I looked up spi@b000 in the 'C:\Projects\nrf\nrf5340_coap\build\zephyr\zephyr.dts', I see
            spi2: spi@b000 {
                compatible = "nordic,nrf-spim";
                #address-cells = < 0x1 >;
                #size-cells = < 0x0 >;
                reg = < 0xb000 0x1000 >;
                interrupts = < 0xb 0x1 >;
                max-frequency = < 0x7a1200 >;
                easydma-maxcnt-bits = < 0x10 >;
                status = "disabled";
            };
Now I have enabled spi1 and only that. I have no need for spi2.
in my devicetree overlay I have 
&pinctrl {
.
.
.
    spi1_default: spi1_default {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
                    <NRF_PSEL(SPIM_MOSI, 0, 9)>,
                    <NRF_PSEL(SPIM_MISO, 0, 10)>;
        };
    };
};
&spi1 {
    status = "okay";
    cs-gpios = <&gpio0 11 0>;
    pinctrl-0 = <&spi1_default>;
    pinctrl-names = "default";
};
Why is this error generated ? 
Cheers,
Kaushalya
Parents Reply Children
Related