Skip to main content
Tung Nguyen
Associate II
Sep 1, 2018 8:48 PM UTC
Question

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

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
    Sep 1, 2018 9:01 PM UTC

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tung Nguyen
    Associate II
    Sep 2, 2018 12:32 AM UTC

    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
    Sep 2, 2018 12:47 AM UTC

    >> 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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    Sep 2, 2018 12:50 AM UTC

    >>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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tung Nguyen
    Associate II
    Sep 6, 2018 12:57 AM UTC

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

    Tung Nguyen
    Associate II
    Sep 15, 2018 7:14 PM UTC

    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.