hi, i am working with nrf52840 and need a stand alone qspi peripheral in the project. what is the straight forward way to get qspi into the code up and running without involving flash storage?
thank you.
hi, i am working with nrf52840 and need a stand alone qspi peripheral in the project. what is the straight forward way to get qspi into the code up and running without involving flash storage?
thank you.
Hey,
You can utilize the QSPI NOR flash memory driver to access the QSPI external flash memory. Kindly take a look at the API zephyr/include/drivers/flash.h. Also, refer the following examples.
zephyr/tests/drivers/flash
zephyr/samples/subsys/fs/littlefs
Regards,
Swathy
thank you for reply.
actually i wanted a way to handle the bare qspi peripheral like we do with spi and i2c.
anyway, i think i found it. i used custom instructions to send the data to the device. this method works but of no use. since it only uses si/so0 and so1 lines to communicate with device. same as normal spi. we can not use qspi to its full potential.
the nor flash memory drivers provide api's for reading and writing to external memory but they are all predefined to hardware level and cannot be customized to access other flash chips. (i mean the commands to read , the address of the destination in memory, dummy bits. all of them have very few options)
i wish they were more flexible.
thank you.
thank you for reply.
actually i wanted a way to handle the bare qspi peripheral like we do with spi and i2c.
anyway, i think i found it. i used custom instructions to send the data to the device. this method works but of no use. since it only uses si/so0 and so1 lines to communicate with device. same as normal spi. we can not use qspi to its full potential.
the nor flash memory drivers provide api's for reading and writing to external memory but they are all predefined to hardware level and cannot be customized to access other flash chips. (i mean the commands to read , the address of the destination in memory, dummy bits. all of them have very few options)
i wish they were more flexible.
thank you.