cancel
Showing results for 
Search instead for 
Did you mean: 

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

JJoha.4
Associate

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.

3 REPLIES 3

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

Internal ticket number : 110218

JJoha.4
Associate

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