Error with timeouts constants in stm32f7xx_hal_sd.c in SD_SendSDStatus and SD_FindSCR cause indefinite hangs.
Both these functions contain the code:
"if((HAL_GetTick() - tickstart) >= SDMMC_DATATIMEOUT)"
However SDMMC_DATATIMEOUT is defined as 0xFFFFFFFF so the timeout is very long (49 days with a 1ms tick) and therefore never occurs.
That upshot is that if there is ever an error with the Status-send or Find-SCR functions (which can occur occasionally) then the caller is blocked indefinitely and no further comms with the SD card is possible.
Suggest that these instances should use SDMMC_CMDTIMEOUT not SDMMC_DATATIMEOUT because SDMMC_DATATIMEOUT is defined for use with SDCLK ticks not OS/HAL ticks.
