Hi,
In our project we use the LPC55S16 microcontroller. We want to use our device as USB mass storage linked to an external flash memory with FatFs. This mass storage device have to available for the host PC, and also for the micrcontroller inner file operating functions.
In SDK examples exist USB MSC projects, but only with RAM disk, or USB host device.
Can Yout tell me, where can I interface the USB MSC device with the extrenal flash memory? Where can I find the USB read, write functions to interface with flash read, write functions? I search the interfacing functions within USB related files, but I couldn't find.
If I want to add the FatFs middleware to the project when I select the USB disk, then the wizard automatically selects the USB Host libraries, but I don't need for them, just for the USB Device libraries. Why I can't select the FatFs USB disk without USB host?
Br,
Szabolcs
Hi Alice,
I'm a little bit confused.
Firstly i can not found the above mentioned "usb_device_msc_sdcard" example under the latest SDK.
Secondly you recommend the above mentioned usb device example, but later you advice using FatFS with USB host, not device.
As i wrote on the beginning of the topic, our device need to work as USB device, and the host is the PC.
Hello Szabolcs_Vass,
Sorry, I haven't noticed there isn't this demo under SDK for LPC55s16. You can refer to this demo under lpc55s28 or lpc55s69.
Hello Szabolcs,
There isn't a exactly demo as you required, the latest one is "usb_device_msc_sdcard" under SDK,
you can download from: https://mcuxpresso.nxp.com/en/select
About using FatFS, just need add it in USB host, not device.
BR
Alice