Skip to main content
Tung Nguyen
Associate II
September 1, 2018
Question

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

  • September 1, 2018
  • 6 replies
  • 1149 views

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.

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    September 1, 2018

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Tung Nguyen
    Associate II
    September 2, 2018

    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.

    Tesla DeLorean
    Guru
    September 2, 2018

    >> 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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    September 2, 2018

    >>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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Tung Nguyen
    Associate II
    September 6, 2018

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

    Tung Nguyen
    Associate II
    September 15, 2018

    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.