How to Read & Write onto the External Flash integrated in nRF7002dk

I have an nRF7002dk & its datasheet mentions that there is a 64 Mb external flash memory. The memory is connected through a regular highspeed
Serial Peripheral Interface (SPI) .
The memory is connected to the chip using the following General-Purpose Input/Output (GPIO)s:
P0.11 CS
P0.08 SCLK
P0.09 MOSI
P0.10 MISO

I am trying to run a basic test using the spi_flash sample but looks like it only works with nRF5340 & other nRF5 series boards, nothing about the 7002 dk is mentioned.

What changes do I make in the boards files or create an overlay or conf file ?

You're looking at fairly beginner level developer here, so not much aware of the nrf stuff.

Parents Reply
  • Tried building it without an overlay & these are the errors I got when I built it with nrf7002dk/nrf5340/cpuapp board: 

    build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\2d382dcd92\opt\bin\cmake.EXE' --build 'c:\nordic\myApps\spi_flash\build'

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.


    However when I build it with nrf5340dk/nrf5340/cpuapp board it is successfully build, no errors whatsoever.

Children
Related