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 Reply Children
Related