cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have SD and USB together on the same chip?

Tung Nguyen
Associate II

I have been able to implement individually:

  1. SD + FreeRTOS + FATFS + DMA
  2. USB + FreeRTOS + FATFS

I want to know how can I make (SD + USB + FreeRTOS + FATFS + DMA) work. Example would be great.

Thank you every much.

6 REPLIES 6

In this context what does "USB" do?

Host or Device?

MSC, VCP, HID?

Providing concurrent access to the SD via FATFS and USB-MSC is difficult, consider USB-MTP

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Tung Nguyen
Associate II

Hi Clive Two.Zero,

Thanks for the quick response.

USB is in host mode and mass storage class.

Thanks for suggesting USB-MTP, but for now, I want to make SD and USB-MSC work together if possible.

>> I want to make SD and USB-MSC work together if possible.

Pretty sure there examples of that for several STM32 and board combinations.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

>>USB is in host mode and mass storage class.

Host mode would suggest you're plugging in a Flash Drive

STM32Cube_FW_F7_V1.12.0\Projects\STM32756G_EVAL\Applications\USB_Device\MSC_Standalone\readme.txt

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Tung Nguyen
Associate II

Thank you. Let me read it first and ask more questions in case I don't understand.

Tung Nguyen
Associate II

Hi,

I have been able to mount both the USB and SD successfully. There is one problem, when I write to USB, it actually writes to SD card.

Why does this happen?

Any suggestions would be much appreciate.

Thanks.