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
  • Hi,

     

    Did you try to run the zephyr/samples/drivers/spi_flash for nrf7002dk/nrf5340/cpuapp board?

    It should work out-of-the-box:

    *** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    
    mx25r6435f@0 SPI flash testing
    ==========================
    
    Perform test on single sector
    Test 1: Flash erase
    Flash erase succeeded!
    
    Test 2: Flash write
    Attempting to write 4 bytes
    Data read matches data written. Good!!
    

     

    If you get any errors or similar, could you please share those?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Did you try to run the zephyr/samples/drivers/spi_flash for nrf7002dk/nrf5340/cpuapp board?

    It should work out-of-the-box:

    *** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    
    mx25r6435f@0 SPI flash testing
    ==========================
    
    Perform test on single sector
    Test 1: Flash erase
    Flash erase succeeded!
    
    Test 2: Flash write
    Attempting to write 4 bytes
    Data read matches data written. Good!!
    

     

    If you get any errors or similar, could you please share those?

     

    Kind regards,

    Håkon

Children
No Data
Related