USB device mass storage device + FatFs + Freertos

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB device mass storage device + FatFs + Freertos

2,219 次查看
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

 

标签 (1)
0 项奖励
回复
1 回复

1,376 次查看
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 项奖励
回复