This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F405 SD Card write speed

I have a 60Mb file on my class 4 SD card. In a 'while' loop I read blocks of size 8kb from that file and write it in another file on the same flash. It takes approximately 3 minutes for a whole loop. Is there any way to speed up the process?

Here is the code:

int blockSize = 4096;
while (fread(inputBuffer, sizeof(short), blockSize, f1) == blockSize) {
  fwrite(inputBuffer, sizeof(short), blockSize, f2);
}

0