Skip to main content
Nemui Trinomius
Associate II
December 22, 2015
Solved

STM32Cube_FW_F7_V1.3.0 SDMMC HAL Driver bug.

  • December 22, 2015
  • 1 reply
  • 702 views
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.
    This topic has been closed for replies.
    Best answer by Nickname5522_O
    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-

    1 reply

    Nickname5522_O
    Nickname5522_OBest answer
    Visitor II
    December 23, 2015
    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-