2021-07-11 11:11 PM
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
2021-07-11 11:38 PM
Hello @migmel ,
This thread might help you: STM32CubeMX Multi-Drive Support with FatFS
Best regards,
@SBEN .2
2021-07-12 12:45 AM
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
2021-07-12 01:38 AM
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
2021-07-12 02:02 AM
Thank you.
I will follow this example
2021-07-12 10:02 AM
You're welcome :)