I am working with the module nrf5340-DK. I am searching for an example to use the QSPI with the onboard external memory, could you share an example? and the other question is where is the API I must use to control the QSPI.
I am working with the module nrf5340-DK. I am searching for an example to use the QSPI with the onboard external memory, could you share an example? and the other question is where is the API I must use to control the QSPI.
I think this ticket should be relevant: https://devzone.nordicsemi.com/f/nordic-q-a/72045/flash-filing-system-for-nrf-connect-sdk
Please ask if you have any more questions
Best regards,
Simon
I have checked the link.
This link has filesystem options, we are searching for something more simple. In this link, we have also a link to a library Here but when I try to search this library in the zephyr folder I do not find it.
Could you help us with one example for nrf5340 where only read and write some bytes, we can continue after that.
MarcosDNordic said:In this link, we have also a link to a library Here but when I try to search this library in the zephyr folder I do not find it.
What version of NCS do you have? I have NCS v1.5.0 and I found it here: C:\Users\<user name>\ncs\v1.5.0\zephyr\drivers\flash\nrf_qspi_nor.c.
MarcosDNordic said:Could you help us with one example for nrf5340 where only read and write some bytes, we can continue after that
I think the sample C:\Users\<user name>\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\src\main.c is a perfect fit. It does not use a file system, just pure flash write and read calls.
If the board nrf5340dk_nrf5340_cpuapp is used, the configurations in zephyr\samples\drivers\spi_flash\boards\nrf5340dk_nrf5340_cpuapp.conf will get automatically applied, which will make the driver nrf_qspi_nor.c get used under the hood. E.g. when flash_read() is called, the function qspi_nor_read() will get called under the hood. You don't need to worry about configuring the hardware, since qspi and the onboard flash is already set by default in the board file: zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts
Best regards,
Simon
MarcosDNordic said:In this link, we have also a link to a library Here but when I try to search this library in the zephyr folder I do not find it.
What version of NCS do you have? I have NCS v1.5.0 and I found it here: C:\Users\<user name>\ncs\v1.5.0\zephyr\drivers\flash\nrf_qspi_nor.c.
MarcosDNordic said:Could you help us with one example for nrf5340 where only read and write some bytes, we can continue after that
I think the sample C:\Users\<user name>\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\src\main.c is a perfect fit. It does not use a file system, just pure flash write and read calls.
If the board nrf5340dk_nrf5340_cpuapp is used, the configurations in zephyr\samples\drivers\spi_flash\boards\nrf5340dk_nrf5340_cpuapp.conf will get automatically applied, which will make the driver nrf_qspi_nor.c get used under the hood. E.g. when flash_read() is called, the function qspi_nor_read() will get called under the hood. You don't need to worry about configuring the hardware, since qspi and the onboard flash is already set by default in the board file: zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts
Best regards,
Simon
Hi I am trying to interface QSPI with NRF5340 dk board. I am getting build errors. I have used SPI-FLASH sample and it was working fine and I am trying to change the SPI-FLASH code into a modular form for QSPI.
Here I am attaching the overlay file: