cancel
Showing results for 
Search instead for 
Did you mean: 

STM3210C EVAL

mahmoud_dhaiwi
Associate II
Posted on November 12, 2012 at 15:16

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.h
10 REPLIES 10
Posted on November 22, 2012 at 19:45

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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..