Is the mass storage example in the nRF SDK compatible only with QSPI?

Hello,

I have a custom board with an nRF52833 and a W25Q512JVEIQ, which communicate over SPI (not QSPI). I successfully accessed the W25Q512JVEIQ (executed my own read and write commands).

My next goal is to use the W25Q512JVEIQ external flash memory as USB mass storage. I reviewed the samples/subsys/usb/mass sample and am trying to adapt it to my project. While researching an issue, I came across an old discussion where it was mentioned that the nRF5 SDK did not include any application for SPI flash. Is this still true? In this example, samples/subsys/usb/mass uses QSPI. Can I switch to SPI and use it without issues?

I tried implementing it myself, but I encountered mounting issues. The fs_mount function returns -5, which I believe is an EIO error. What can I do to resolve this? To resolve this issue, I think I need to implement the read, write, and erase functions I wrote for the W25Q512JVEIQ in the relevant parts of the code. Am I correct?

Best Regars.

Parents
  • Hello,

    You should not have to make any code changes to test this sample on your board. It should be sufficient to add a devictree overlay similar to the nrf52840dk_nrf52840.overlay. The flash device shall be placed in one of your SPI nodes. 

    My next goal is to use the W25Q512JVEIQ external flash memory as USB mass storage. I reviewed the samples/subsys/usb/mass sample and am trying to adapt it to my project. While researching an issue, I came across an old discussion where it was mentioned that the nRF5 SDK did not include any application for SPI flash. Is this still true? In this example, samples/subsys/usb/mass uses QSPI. Can I switch to SPI and use it without issues

    SPI NOR is also supported in the nRF Connect SDK.

    Best regards,

    Vidar

Reply
  • Hello,

    You should not have to make any code changes to test this sample on your board. It should be sufficient to add a devictree overlay similar to the nrf52840dk_nrf52840.overlay. The flash device shall be placed in one of your SPI nodes. 

    My next goal is to use the W25Q512JVEIQ external flash memory as USB mass storage. I reviewed the samples/subsys/usb/mass sample and am trying to adapt it to my project. While researching an issue, I came across an old discussion where it was mentioned that the nRF5 SDK did not include any application for SPI flash. Is this still true? In this example, samples/subsys/usb/mass uses QSPI. Can I switch to SPI and use it without issues

    SPI NOR is also supported in the nRF Connect SDK.

    Best regards,

    Vidar

Children
No Data
Related