How to fix SDIO error HAL_SD_ERROR_RX_OVERRUN?
Hi, I have issues while using "FATFS R0.12c" over SDIO on my STM32F407. I do SDIO write to file on main loop, but I also have "TIM2/TIM3/CAN1 RX0/CAN1 RX1" interrupts which has other logic (for example TIM2 sends UART message every 100ms to update the screen). Writing to file sometimes works, but eventually it returns "hsd->ErrorCode = 0x20" which means "HAL_SD_ERROR_RX_OVERRUN".
I have tried: reducing interrupt duration; using DMA on SDIO with highest priority interrupts; using non-DMA SDIO settings; increasing "hsd.Init.ClockDiv" for slower writes - but none of these things completely eliminat the error.
Are those interrupts to blame if they occur during SDIO write?
How could I fix HAL_SD_ERROR_RX_OVERRUN?
Or recover from it? (usually it causes file to be locked FR_LOCKED and I am not able to write any more)
