USB device mass storage device + FatFs + Freertos

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

USB device mass storage device + FatFs + Freertos

1,554 Views
PO220
Contributor IV

Hi

I am trying to access from a pc to the contents of an SD card. SD card on which I can write with FatFs

I work with the FRDM-K66 from the "usb_device_composite_cdc_msc_sdcard" demo project

 

usb_device_composite_cdc_msc_sdcard demo project works perfectly

I managed to integrate FatFs, create directories and write to the SD card (by désabling USB)

 

If I add the initialization of the file system to the USB demo project then the USB no longer works.

 

FatFs and USB stack are very difficult to understand...

=>Is it technically possible to have both msd device and FatFs to write to memory ?

If yes, where should I act? A mutex between FatFs and msd (I tried without success for the moment)?

 

thank you in advance

 

Labels (1)
0 Kudos
1 Reply

711 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi PO220

There is a  USB host demo integrated with fatfs, I think you can refer to it.

SDK_2.2_FRDM-K66F\boards\frdmk66f\usb_examples\usb_host_msd_fatfs\freertos\

Regards

Daniel

0 Kudos