modify USB_MSC to work with SPI

Hi,
can i modify USB_MSC example in sdk-17.1.0 to work with SPI instead of QSPI ?
as i am working with NAND memory which not compatible with QSPI driver. but it works well with SPI so can i modify the example to use the FATFS as it or i must start my own driver from register level and implement it from beginning.
i am workin with NRF52840 and SDK-17.1.0.
thank you,

Parents
  • Hi,

    We do not have any examples showing how to use FATFS with external flash over SPI in nRF5 SDK, but it should be possible to add support for this yourself without too much work.

    The FATFS library interfaces with The QSPI peripheral through an abstraction layer called Block device. We have block device implementations for different peripheral/transports/targets, including QSPI, RAM, SD-card, etc. The simples solution for your case would be to duplicate and modify one of the existing block device implementations, to work with your SPI flash device. The QSPI implementation may be the best starting point, but you can have a look at the other implementations as well for reference. You will have to implement the read and write operations for your flash device in the new block device implementation.

    Best regards,
    Jørgen

Reply Children
No Data
Related