nRF9161 DK SPI Flash example

I'm looking for a beginner's guide to setting up external flash on the nRF9161 DK. I saw nRF Cloud Multi-service as an example, but its docs did not explain what was needed hardware-wise to set up the external flash memory (I found this). Basically, I have a spare Adafruit SPI Flash SD Card XTSD 4GB, and I'm looking to connect it to the DK if possible. I assume I need to modify the board overlay but I'm not sure where to go from here. Where are the pins for gd25wb256 in the sample defined? 

Parents
  • It is taking some time to port this sample to nrf9161, but interfacing the SD card with SPI works now. You can add the overlay to the sample and build with prj_blk.conf

    &spi3 {
        gd25wb256: gd25wb256e3ir@1 {
            status = "disabled";
        };
        sdhc0: sdhc@0 {
                compatible = "zephyr,sdhc-spi-slot";
                reg = <0>;
                status = "okay";
                mmc {
                    compatible = "zephyr,sdmmc-disk";
                    status = "okay";
                };
                spi-max-frequency = <1000000>;
        };
    };

    then use the arduino pins for SPI. You can just ask if you need more help after this. I will let you know when I'm done with the sample.

Reply
  • It is taking some time to port this sample to nrf9161, but interfacing the SD card with SPI works now. You can add the overlay to the sample and build with prj_blk.conf

    &spi3 {
        gd25wb256: gd25wb256e3ir@1 {
            status = "disabled";
        };
        sdhc0: sdhc@0 {
                compatible = "zephyr,sdhc-spi-slot";
                reg = <0>;
                status = "okay";
                mmc {
                    compatible = "zephyr,sdmmc-disk";
                    status = "okay";
                };
                spi-max-frequency = <1000000>;
        };
    };

    then use the arduino pins for SPI. You can just ask if you need more help after this. I will let you know when I'm done with the sample.

Children
Related