Question
SDIO BUG: Large SDHC file system corruption (sd_diskio.c)
Posted on February 08, 2016 at 05:05
I found incorrect code in SD_write andSD_read code (sd_diskio.c). This conversion will fail on sectors above8388608 (4GB):
(uint64_t) (sector * BLOCK_SIZE)
It should be
(uint64_t) sector * BLOCK_SIZE
(uint64_t) sector * BLOCK_SIZE
(uint64_t) sector * BLOCK_SIZE
It should be
#sdio #sd_diskio #cubemx #sdio