STM32L562 SD card HAL_SD_ERROR_DATA_CRC_FAIL
I'm trying to run FAT over SD MMC. But it does not work in SD initial stage... I'm using CubeMX.
The simplest one code:
status = HAL_SD_Init(&hsd1);
if(status != HAL_OK)
{
debug_print_message("---SD card initialize failed!\n");
HAL_Delay(100);
}
else
{
debug_print_message("++++SD card initialized!\n");
HAL_Delay(100);
}HAL_SD_Init() from stm32l5xx_hal_sd.c - it was generated by CubeMX.
Debug mode shows SD CRC error - HAL_SD_ERROR_DATA_CRC_FAIL
Logic Analyzer shows some communication - card answer:
Initial clock 400 kHz, some request and replay.

