LPC55S16 - USB mass storage interfacing with an external flash memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S16 - USB mass storage interfacing with an external flash memory

1,091 Views
Szabolcs_Vass
Contributor I

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

 

 

     

 

Labels (1)
3 Replies

1,059 Views
Szabolcs_Vass
Contributor I

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.  

0 Kudos

1,019 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.

 

0 Kudos

1,073 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos