2012-11-12 06:16 AM
Hello, I use STM3210C-EVAL board.
I have to copy the files from the SD card to a USB wih the format FAT. Is there someone who can help me? Thanks in advance. #stm3210c-eval #fatfs #sdcard-fatfs #f_mount-sdcard #syncobj.c-windows.h2012-11-22 10:45 AM
How does the program know which drive I will write if I use the same fuction with the same parameters ?!! for example if I put f_mount(1 , &fatfs)... What is going to happen?
Well you really need to have a unique context for each connection you want to make to FatFs. If you mingle the contexts all kinds of bad things will happen. ie the same way you can't use the same file handle to access two different files simultaneously. You will need to merge/combine the access functions in diskio.c to direct access the specific drive/volume the incoming request specifies. So one volume directs to the SD routines, the other to USB routines.