Skip to main content
Visitor II
July 12, 2021
Question

Is it possible to link SD card and USB flash drive simultaneously?

  • July 12, 2021
  • 4 replies
  • 932 views

Hello friends,

I am currently testing transfer content from USB to SD card using a STM32469I Discovery board. However I have been unable to link both SD card and USB so the transfer go faster without the process of link-unlink using FATFS_LinkDriver / FATFS_UnLinkDriver functions. My question is: Is this how it is done? or I am doing something wrong?

The problem is currently I cannot write to neither SD card nor USB if both drivers are linked. It only works fine when only one drive is linked, and apparently the first one linked is the one that is recognized

    This topic has been closed for replies.

    4 replies

    Visitor II
    July 12, 2021

    Hello @migmel​ ,

    This thread might help you: STM32CubeMX Multi-Drive Support with FatFS

    Best regards,

    @SBEN .2​ 

    migmelAuthor
    Visitor II
    July 12, 2021

    Thank you, information is good, but it did not help me to solve the problem.

    It's unclear how the system assign the drive number and files that should go to SD card are written to the USB and vice versa

    Visitor II
    July 12, 2021

    Hello @migmel​ ,

    You can take inspiration from the following project (which can be found in the firmware zip package) : https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324x9I_EVAL/Applications/FatFs/FatFs_MultiDrives

    Best regards,

    @SBEN .2​ 

    migmelAuthor
    Visitor II
    July 12, 2021

    Thank you.

    I will follow this example

    Visitor II
    July 12, 2021

    You're welcome :)