External Flash memory QSPI for data storage, retrieval to send over BLE

Hello DevZone, 

I am trying to integrate an external flash memory device W25M02GWZEIG chip with nRF52840 over QSPI. I had followed the sample code - SPI- Flash in the Zephyr- RTOS codebase for nrfConnect as follows,


https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/drivers/spi_flash/src/main.c . Attempted setting the overlay config with different pins owing to my system pin-mapping.

Therefore, I would like to obtain insight for setting the overlay for this particular chip(W25M02GWZEIG) using QSPI. 

Having looked into the code for erasing, reading and writing multi-sector data into the flash, I would like to retrieve and send data over BLE to an app(custom) for my application. I am trying to store data from an IMU onto the chip and send it later to an app when needed. 

Kindly help provide guidance in how I can use the QSPI setup for flash to store, retrieve and send packaged data over BLE to my application. Provide any suitable resources to help with this regard. 

Thank You. 

Parents
  • Hi

    What pins have you connected the QSPI to on the nRF52840 side? This JEDEC id error is usually seen either when using GPIOs that are doing something else or if the SPI isn't set up correctly in the .config and .dts files in your project.  Since one of the recommended QSPI pins are P0.18 (which is also the reset pin) you need to make sure your project builds with the CONFIG_GPIO_AS_PINRESET=n set by default.

    Best regards,

    Simon

Reply
  • Hi

    What pins have you connected the QSPI to on the nRF52840 side? This JEDEC id error is usually seen either when using GPIOs that are doing something else or if the SPI isn't set up correctly in the .config and .dts files in your project.  Since one of the recommended QSPI pins are P0.18 (which is also the reset pin) you need to make sure your project builds with the CONFIG_GPIO_AS_PINRESET=n set by default.

    Best regards,

    Simon

Children
Related