I'm facing problems when reading large files. I have some code that copies one file from a USB stick to an SD Card. But I'm facing issues when copying large files, larger than 10MB. Here is how I'm doing it:
Everything goes well for the first couple of megs, but then randomly, the "read" function returns 0 and the source device stops responding, even when I close the file and try to open it again. I have done this copying successfully with files under 10 MB but it doesn't work with files larger than that. I'm reading from USB and immediately writing to the SD Card without interruption or delays, I don't know if I need to introduce a delay in between read and write or something.
What I'm trying to know if this is the correct way of doing it, just opening both files, read from one and write to the other. I mean, it works just fine for files up to 10MB so I'm not sure.
已解决! 转到解答。
Hi Manuel:
This is an MFS filesystem issue, and fixed in MQX 4.2, and patch 4.2.0.2. Please refer to the attached release notes for the MFS bug fix.
I would suggest you update to MQX 4.2.0 + patch if possible.
Or you can try to merger the new MFS part to your project.
Regards
Daniel
Hi Manuel:
This is an MFS filesystem issue, and fixed in MQX 4.2, and patch 4.2.0.2. Please refer to the attached release notes for the MFS bug fix.
I would suggest you update to MQX 4.2.0 + patch if possible.
Or you can try to merger the new MFS part to your project.
Regards
Daniel