cancel
Showing results for 
Search instead for 
Did you mean: 

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

migmel
Senior

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

5 REPLIES 5
SBEN .2
Senior II

Hello @migmel​ ,

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

Best regards,

@SBEN .2​ 

migmel
Senior

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

SBEN .2
Senior II

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​ 

migmel
Senior

Thank you.

I will follow this example

You're welcome :)