This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 SPI slave Example code

Can anyone please provide nRF9160 SPI slave Example code?

Thanks,

-Ankit

Parents Reply
  • If you are going to implement SPI Slave, Below setting will work:

    in nrf9160_pca10090ns.overlay file:

    &spi3 {
    compatible = "nordic,nrf-spis";
    status = "okay";
    sck-pin = <13>;
    mosi-pin = <11>;
    miso-pin = <12>;
    csn-pin = <10>;
    def-char = <0x00>;
    };

    in prj.conf file:

    # SPI
    #CONFIG_SPI=y
    #CONFIG_SPI_SLAVE=y
    #CONFIG_SPI_3_NRF_SPIS=y
    # 2 = slave only
    #CONFIG_SPI_3_OP_MODES=2
    #CONFIG_SPI_ASYNC=y                     

    Note: when proj.config file is changed, reopen project.

Children
No Data
Related