I have Stm32f407VET6 Black Board, cant connect the MicroSD card. im using onboard SD slot and a 32GB micro SD card by PNY. The card is okay and its already in FAT32 formatted. f_mount() function returns only FR_NOT_READY. Mounting Formatting wont work.
I have been following tuts from controller tech and on SDIO it seems not work for me.
IDE: Cube IDE 1.12.1 Board: Stm32f407VET6 Black Board Driver Version: 1.27.1 for f4 SDIO Mode: SD 4bit wide bus
Clock Setup
SDIO setup ,
FATFS setup,
main.c file

I also have extended the heap and stack size for the application to 2048. The response i found from f_mount() in ff.c used in a custom file_handling.c file used by controller tech, it only returns FR_NOT_READY
I also noticed that the MX_SDIO_SD_Init() used in main.c don't have any HAL_SD_Init() function call like other peripheral MX_init function.

If anyone successfully did mount a card please share ur code and if possible help me out finding the mistake
I've currently the same issue. If you dig a little bit deeper with the debugger through the source code you perhaps will see that you come along the file
$Project/Middlewares/ThirdParty/FatFS/src/diskio.c. Inside this file the functionDSTATUS disk_initialize(BYTE pdrv)is called. Inside this function another function will be called which isstat = disk.drv[pdrv]->disk_initialize(disk.lun[pdrv]);(pointer-to-function) and points in my case to the functionDSTATUS USER_initialize (pdrv)in the fileuser_diskio.cor similar. The content of the latest function is not complete and returns alwaysSTA_NOINIT(= 0x01) which leads to an f_mount() = not ready error because you have to add your own stuff here. I'm currently busy with it and in an earlier project where I've done this with a µSDcard with SPI-interface that works after hours of try and error.Some information how to use the driver can be found at the beginning of the driver files like
stm32f4xx_hal_sd.candsd_diskio.c. Search for it inSTM32Cube_FW_F4_V1.27.*.zip/Drivers/STM32F4_HAL_Driver/Src.Take also a look in the firmware package to
STM32Cube_FW_F4_V1.27.*.zip/Projects/STM32F446ZE-Nucleo/Demonstration/sd_diskio.cto get an example what you have to do. Hope it helps.PS: I'm using a STM32F4-DISCOVERY board for my development.