2025-09-28 10:51 AM
Hello,
I am trying to get f_mount() to work with the SDIO peripheral.
Currently, the f_mount() reaches the first disk_read() function, where it hangs in the osMessageQueueGet() call.
Stuff I already tried:
- increase min & max heap to 0x400, 0x800
- increase default static rtos task stack size to 8000
- call f_mount in the default task
- have delay before f_mount
- pullup on all IO pins except the CLK
- the hsd.Instance has recognized card type and class
- the NVIC prio is 5 for SDIO and DMA stream
- tried SDIO_RX/SDIO_TX combo and just SDIO
- tried setting GPIO pins to lower speeds
- tried SD bit 1 mode and then switching to 4bit mode
- tried SD bit 1 mode and keeping 1 bit mode
- SDIO_IRQ interrupt hits, but does not put anything in the SDQueueID queue.
i would prefer to use the cubemx generated drivers and not write one myself. is this configuration (RTOS+SDIO+FATFS) not possible/bugged?
thanks.