Board: LPC54S018-EVK
Hello,
I'm currenty facing a puzzling issue where sometimes the blocking SDIO transfers (using CMD53 w/ byte mode) get stuck in the `SDIF_WaitCommandDone` loop.
`SDIF_TransferBlocking` with `dmaConfig = NULL` sets up the command with `SDIF_SendCommand` and then calls `SDIF_WaitCommandDone` to wait until it succeeds or an error is detected. What I'm seeing is that sometimes the MCU keeps looping forever in `SDIF_WaitCommandDone` as `MINSTS` value is `0x400`, the host timeout error flag, which is not recognized as such and thus is not making the loop stop.
The error can be observed when the SDIO card is working in HS mode (~48MHz) and also in the normal mode (~25MHz).
In order to perform a byte-read using CMD53 I'm currently setting the block size to the desired byte value (less than the defined block size for func0/func1) and number of blocks equal to one, perhaps that's what's causing this problem?
I'm running out of ideas and time to debug this problem, any hint or guidance is greatly appreciated.
G.