Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Failed to build due to "identifier "DT_N_S_soc_S_spi_40003000_P_clock_frequency" is undefined"

I am working with nRF52840 with MAX86141 and learning how to setup the SPI connection 

Here is an opensource example : https://github.com/JON95Git/zephyr-spi-directly

And when I try to build, it has some errors 

My overlay details

/*
 * nRF52840_mdk     SPI
 *
 * P0.27            SCK
 * P0.26            MOSI
 * P0.29            MISO
 * P0.25            CS
 */

&pinctrl {
    spi0_default: spi0_default {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 27)>,
                <NRF_PSEL(SPIM_MOSI, 0, 26)>,
                <NRF_PSEL(SPIM_MISO, 0, 29)>;
        };
    };

    spi0_sleep: spi0_sleep {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 27)>,
                <NRF_PSEL(SPIM_MOSI, 0, 26)>,
                <NRF_PSEL(SPIM_MISO, 0, 29)>;
            low-power-enable;
        };
    };
};

&spi0 {
    compatible = "nordic,nrf-spi";
    status = "okay";
    pinctrl-0 = <&spi0_default>;
    pinctrl-1 = <&spi0_sleep>;
    cs-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
    pinctrl-names = "default", "sleep";
    clock-frequency = <20000000>;

    spidev: spi-device@0 {
        reg = <0>;
    };
};
VSCode , V2.52 NCS 
Parents Reply Children
Related