AnsweredAssumed Answered

SDIO BUG: Large SDHC file system corruption (sd_diskio.c)

Question asked by isaev.michael on Feb 8, 2016
Latest reply on Feb 8, 2016 by Clive One
I found incorrect code in SD_write and SD_read code (sd_diskio.c). This conversion will fail on sectors above 8388608 (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

Outcomes