File writing bug with FatFs over FreeRTOS on H743
Hi!
I would like to store files on an SD card that are transmitted via HTTP POST (lwIP HTTP server). The files are correctly transmitted (hash calculating on both sides, the hashes are equal) and then written out to the card. But the content of the file is wrong: there is an additional byte before my content (and the last byte is missing, e.g. the file size is correct).
I've checked the data in the HAL_SD_WriteBlocks_DMA method before write, and everything is correct.
The cache maintenance (ENABLE_SD_DMA_CACHE_MAINTENANCE) macro is also defined. (And 1-byte offset bug cannot be by cache miss).
Another interesting thing it seems to be somehow timing related.
What can I check?
Regards,
