I'm trying to get the SD 1-bit interface working on my STM32L476. I generated the code with the STM32CudeMX.
So that's my problem:
The init function "MX_SDMMC1_SD_Init"  stucks in a loop. So, I used the debugger to find where exactly the error occurs. You can see the code snippets below. function calls function , function calls function and so on.
In function , the call of SDMMC_CmdAppOperCommand(..) generates the error "SDMMC_ERROR_CMD_CRC_FAIL".
Any suggestions on how to solve or debug this issue any further?I have a digital analyzer, but it does not support SD protocol. The D0 line stucks at 0 V. The sd card comes fat32 formatted.
I'm new to this protocol and did not find any good documentation / application notes / getting started sheets. So, something like that would be very helpful too.
Thanks in advance!