USB mass storage from internal flash

I'd like to make my product appear as a USB drive when plugged into a computer. I want to save sensor readings to CSV file, and allow users to read/copy them.

I found the USB mass storage device example (https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html)

It appears to do what I want, except it only seems to work for SPI flash devices like the QSPI on the NRF52840-DK.

I don't need a lot of storage so I would like to just use ~512KB of the internal flash memory instead. If possible.

Looking in the devzone I found this post from 4 years ago (  USB msc using internal flash )

which appears to say that there isn't support because there isn't a driver from Nordic.

  • Is this example the correct one to look at?
  • Is there a way to do what I want?

Thanks for your help.

Related