Skip to main content
Visitor II
July 5, 2021
Question

Seems that the ext_csd commands , used for SANDISK SDMMC cards larger than 1GB has a bug in HAL 1.02.09.

  • July 5, 2021
  • 2 replies
  • 874 views

Files with error

HAL 1.02.09

stm32f7xx_II_sdmmc.c,

stm32f7xx_mmc.c.

My EMMC 8GB - SANDISK - SDINBDG4-8G-XA

Seems that the ext_csd, used for cards larger than 1GB has a bug.

MX_SDMMC1_MMC_Init() is exiting with an error.

Fix: for now im using HAL 1.02.08, but then cant use more than 1GB of the 8GB EMMC module.

    This topic has been closed for replies.

    2 replies

    Visitor II
    July 7, 2021

    Hello @Jørgen Johannessen​ ,

    Welcome to ST Community :)

    The request you have raised will be internally checked and treated accordingly to the priority.

    We will give you an update as soon as possible.

    Thanks for your contribution.

    BeST Regards,

    Walid

    Visitor II
    July 7, 2021

    Internal ticket number : 110218

    JJoha.4Author
    Visitor II
    July 9, 2021

    Get the error 4 in STM32F7XX_HAL_MMC.C line 2776,

     SDMMC_CmdInitTypeDef sdmmc_cmdinit;

     uint32_t errorstate;

     /* Send CMD9 SEND_CSD */

     sdmmc_cmdinit.Argument     = Argument;

     sdmmc_cmdinit.CmdIndex     = SDMMC_CMD_HS_SEND_EXT_CSD;

     sdmmc_cmdinit.Response     = SDMMC_RESPONSE_SHORT;

     sdmmc_cmdinit.WaitForInterrupt = SDMMC_WAIT_NO;

     sdmmc_cmdinit.CPSM       = SDMMC_CPSM_ENABLE;

     (void)SDMMC_SendCommand(SDMMCx, &sdmmc_cmdinit);

     /* Check for error conditions */

    // errorstate = SDMMC_GetCmdResp1(SDMMCx, SDMMC_CMD_HS_SEND_EXT_CSD,SDMMC_CMDTIMEOUT);

    errorstate = 4.

    Have tried to change SDMMC_CMDTIMEOUT to 10000, 20000 but still gets the error.

    Best regards

    Jørgen Johannessen