Hello,
I'm working on NRF52840 drivers for custom hardware using Nordic's FatFS / SDIO drivers and a tickless FreeRTOS configuration. When I load the demo code (fatfs demo, no FreeRTOS) I am able to run the SD card at any speed I want up to the max 8MHz. However, when I load my code, the SD card gets initialized but when the first command is issued (f_mount), it gets stuck in default_wait_func under diskio_blkdev.c and loops forever i.e block_dev_handler never gets triggered and the busy bit remains true. I am running f_mount out of the main task, not from an interrupt and the hardware seems to work just fine at 8MHz. I am concerned that this issue may cause problems with robustness of my code down the road so would like to get to the bottom of it. Hope you can provide some advice as to where I should look to debug this further, thanks in advance!