AnsweredAssumed Answered

STM32Cube_FW_F7_V1.3.0 SDMMC HAL Driver bug.

Question asked by Nemui Trinomius on Dec 22, 2015
Latest reply on Dec 23, 2015 by 68516
Dear all ST staff,

I found a small bug in latest CubeF7_V1.3.0/HALDriver_V1.0.3.
Bug found at HAL_SD_GetCardStatus() on stm32f7xx_hal_sd.c.


01.--- b/stm32f7xx_hal_sd.c
02.+++ a/stm32f7xx_hal_sd.c
03.@@ -2103,9 +2103,9 @@
04. {
05.   HAL_SD_ErrorTypedef errorstate = SD_OK;
06.   uint32_t tmp = 0;
07.-  uint32_t sd_status[16];
08.+  uint8_t sd_status[64];
09.    
10.-  errorstate = HAL_SD_SendSDStatus(hsd, sd_status);
11.+  errorstate = HAL_SD_SendSDStatus(hsd, (uint32_t*)sd_status);
12.    
13.   if (errorstate  != SD_OK)
14.   {

"sd_status[]" array should be parse by "uint8_t",but currently code parse as "uint32_t".
I noticed this bug when I implement read SDCard status register function in disk_ioctl().
Plz fix until next release.


Best regards,
Nemui.

Outcomes