we are using nRF52840
External flash is 128Mb flash.
we have tested the C:\ncs\v2.1.0\zephyr\samples\drivers\spi_flash\ on DK and it works fine.
In MAIN.C file for the following line
we are using nRF52840
External flash is 128Mb flash.
we have tested the C:\ncs\v2.1.0\zephyr\samples\drivers\spi_flash\ on DK and it works fine.
In MAIN.C file for the following line
Hi,
You can add a new external flash using the devicetree.
You can search the nRF Connect SDK for examples on this. For example https://github.com/nrfconnect/sdk-zephyr/blob/main/tests/drivers/flash/boards/nrf52840dk_mx25l51245g.overlay.
To get JEDEC information about your external flash, see its datasheet. Try the JESD216 Sample to read out JEDEC info also.
Regards,
Sigurd Hellesvik
With the changes suggested , the SPI_flash ported to our custom application works with out any error.
[email protected] SPI flash testing 00> 00> ========================== 00> 00> 00> Test 1: Flash erase 00> 00> Flash erase succeeded! 00> 00> 00> Test 2: Flash write 00> 00> Attempting to write 4 bytes 00> 00> Data read matches data written. Good!!
Thank you. If any other input needed will connect back
one thing i missed is as this is success, how i can write one file to flash and read the content of the file
To write and read from flash, I suggest using a Storage driver or a File System.
For samples, see NVS sample or FS Samples.
Regards,
Sigurd Hellesvik