Closed geosmall closed 2 years ago
Hi there, Thanks for your input. I have not previously used the LL drivers. That said, I'm not sure why it would cause a desync. After all, the SPI is deselected before this dummy transaction occurs. Have you tried other SD cards? Some SD cards do not properly support SPI etc. Good luck on resolving your issue.
I've been moving this eample over from bloated STM32 HAL SPI to LL. I was getting SPI sync issues, I now believe there may be an extraneous call to xchg_spi() within despiselect() function that HAL SPI may have been hiding. See:
https://github.com/kiwih/cubeide-sd-card/blob/b73c66bee687bffc1ec1e938c5f3533a81308229/cubeide-sd-card/FATFS/Target/user_diskio_spi.c#L177