STM32F446VET
Hi, I have a custom STM32F446 board. On this board I have an microSD slot that is connected through SDIO (PC8,PC9,PC10,PC11,PC12 and PD2 pins)
In order to write on the microSD i follow this instructions https://community.st.com/t5/stm32-mcus/how-to-create-a-file-system-on-a-sd-card-using-stm32cubeide/ta-p/49830.
This is the schematics of the card connection
and this is the code that I run
at f_mkfs() function it returns FR_NOT_READY. If I continue to run the code and run f_open() it returns FR_INVALID_OBJECT.
My questions are:
1.Could the first result be cause by the fact that Card Detect and is connected to ground and if so how to fix that in the code? where that function is located?
2. Could this be due to wrong frequency on SDIO? I used 48, 25 and 16 and all with no result.
PS I had only one instance when it created the file STM32.TXT but even then the content was corrupted, instead of "STM32FATFS WORKS GREAT" I got some random symbols, and also I was not able to recreate the conditions to have the file created again.
PS2: card used is ONN 32GB formatted in FAT32.
