You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a comment in PNGWriter.cpp indicating working around a file write problem.
// Small writes to avoid some sort of large-transfer plus block
// boundary FatFs or SDC driver bug?
While writing the screenshot viewer, I also ran into this problem if I tried to read a block of 720 bytes all at once. The data was mostly correct, but there was clearly corruption in the data (visible when rendered). I also worked around it by reading in chunks of 240 bytes.
I have not investigated too deeply, but there's likely a bug in FatFs (less likely), or the SD Card driver, or perhaps there's a documented size limit that we need to respect.
The text was updated successfully, but these errors were encountered:
Documentations about these variables and a quick look at them in the code show that the firmware is configured for a fixed 512 block size . It may work with lower read/write sizes, but no with anything bigger than it.
There's a comment in PNGWriter.cpp indicating working around a file write problem.
While writing the screenshot viewer, I also ran into this problem if I tried to read a block of 720 bytes all at once. The data was mostly correct, but there was clearly corruption in the data (visible when rendered). I also worked around it by reading in chunks of 240 bytes.
I have not investigated too deeply, but there's likely a bug in FatFs (less likely), or the SD Card driver, or perhaps there's a documented size limit that we need to respect.
The text was updated successfully, but these errors were encountered: