sdmmc STM32U5 FatFs 4 bits exFat not working
Hello,
I'm trying to set up a micro sd on a nucleo-u575ZI through the sddmc1 with a port of FatFs.
I am using a PmodMicroSD all wired up for 4 bits and the card detect on a GPIO.
I am testing 3 sd card 16GB, 32GB and 64GB.
I have confirmed that all 3 are working in 4 bits mode though SDMMC on a STM32L4R9I Discovery with FatFs.
My current implementation on the U575 works only in 1 bit mode. All 3 cards are working and ExFat is enabled on FatFs and I can read and write files no problems.
When I change the SDMMC to 4 bits configuration on the U575 only the 16GB sd card works. The other cards gives me a FR_NO_FILESYSTEM when trying to mount.
I believe it comes from this line in ff.c
if (fmt >= 2) return FR_NO_FILESYSTEM; /* No FAT volume is found */I'm a bit loss and I was wondering if anyone had any ideas what might go wrong. I ported FatFs from the STM32L4 CubeMX generation. (FatFs version 0.12c) I believe FatFs has exFat bugs in 0.12C as state in the change logs of 0.13 but I am unsure if the bugs affect my issue. I think it's only a wrong configuration but that it's related to exFat.
Thanks
