cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube_FW_F7_V1.3.0 SDMMC HAL Driver bug.

Posted on December 22, 2015 at 03:04

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

.


--- b/stm32f7xx_hal_sd.c

+++ a/stm32f7xx_hal_sd.c

@@ -2103,9 +2103,9 @@

{

HAL_SD_ErrorTypedef errorstate = SD_OK;

uint32_t tmp = 0;

- uint32_t sd_status[16];

+ uint8_t sd_status[64];


- errorstate = HAL_SD_SendSDStatus(hsd, sd_status);

+ errorstate = HAL_SD_SendSDStatus(hsd, (uint32_t*)sd_status);


if (errorstate != SD_OK)

{

''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.
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on December 23, 2015 at 15:07

Hi nemui.trinomius,

The issue is forwarded to our development team.

Thank you for your feedback.

-Shahrzad-

View solution in original post

1 REPLY 1
Posted on December 23, 2015 at 15:07

Hi nemui.trinomius,

The issue is forwarded to our development team.

Thank you for your feedback.

-Shahrzad-