FX3S-Fatfs File Copy Issues

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
rasu_4591691
Level 2
Level 2

Hi,

I am using PACTRON'S FX3S FPGA Dev Board REV-C. It has two storage port. I used to copy the file from one sd card to another sd card (both are ex fat sd card) using Fatfs file system. To copy the 512mb file from sd0 to sd1 it will take a time of 2 minutes 6 seconds. I am using 32KB  buffer for FATFS read/write buffer. I need to improve Maximum Speed and to decrease the time.

How can I reduce the time duration of copying the file?

Thanks & Regards

S.Ravi Chandrika

0 Likes
1 Solution

Hi Ravi Chandrika,

I went through the firmware you provided in the thread: SUBJECT: FX3S – SD Card Copy

I understand that you are writing and reading the data in chunks of 32KB using the f_read and f_write functions.

So, could you try and change the size of the buffer variable in the f_read and f_write functions in increments of 1KB and see if it makes any difference and share your findings?

There are limitations with the use of these functions f_read and f_write as they need to make calls to the disk read/ writes through the driver which degrades the throughput.

Regards,

Yashwant

View solution in original post

0 Likes
9 Replies