STM32Cube SDHC capacity bug (solved)
Posted on May 11, 2014 at 17:21Hello, in stm32f4xx_hal_sd.c line 1554 :pCardInfo->CardCapacity = ((pCardInfo->SD_csd.DeviceSize + 1)) * 512 * 1024;should be :pCardInfo->CardCapacity = (uint64_t) ((pCardInfo->SD_csd.DeviceSize + 1)) * 512 * 1024;or...