2025-04-04 11:14 AM
HI All,
I am using STM32F769 DISCO board.
I have configured SD card in 1 bit moe and it works fine.
But it doesn't work in 4 bit mode.
The problem is in SD_FindSCR function.
if(__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXDAVL))
is never executed.
Cube MX version is 6.8.1
I see there are many similar post's on the forum but
none of the solution worked.
I have set the clock to 12Mhz and I see that
HAL initialize sd card with 1 bit line then trying to read SCR
register to check if 4 bit data line is supported.
And can't read SCR register.
Maybe there are fixes to this HAL library?
Thanks,
2025-04-04 2:01 PM
Hello @load2005
Could you please try using the STM32CubeMX V6.14.0 and the STM32CubeF7 V1.17.2.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-04-05 4:18 AM
Hello,
I have updates to CubeMx V6.14 and checked that I am using F7 V1.17.2.
The problem is still the same.
This part is hit when reading SCR register
else if(!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXACT))
{
break;
}
Can you confirm the problem with your setup please?