Has anyone got a working example for SD card with SDIO and FreeRTOS on STM32F413 with STM32CubeIDE version 1.6.1?
..
..
Here is an example for all of you that are still stuck with the same problem.
In the example, you can find the project file for STM32CubeIDE and STM32CubeMX.
I'aware of the fact that the code is clumsy but it will give you an idea on how to set some of the parameters for the MCU.
The example works with SDIO 1 bit mode.
Few things to be aware of:

Hope it helps.
Once again, thanks to everybody for the answers, they have been of great help anyway.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.