2021-10-27 04:36 AM
I have an STM3210E-EVAL board that I use to gain experience with an SD card.
To generate a software template, I use STM32CubeMX 6.3 and the STM32F103 package.1.8.4. Keil MDK is used to compile the project.
To work with the file system, I use FatFs from STM32CubeMX. My test program (mounting the file system, writing a text file and then reading it) works correctly only in SDIO 1 bit mode. When switching the SDIO to 4 bit mod in STM32CubeMX, i get FR_DISK_ERR occurs during file opening and writing operations. I use SD cards with a capacity of 128 MB, 2 GB and 4 GB. The File_Demo project from Keil MCBSTM32E board adapted by me for STM3210E-EVAL board works successfully with all my SD cards with the SDIO 1 bit and 4 bit bus.
Tell me what can be done to activate the SDIO 4 bit width mode...
Problem solved! The CD card has started working at a frequency of 4 MHz!
Solved! Go to Solution.
2021-11-01 07:48 AM
Hello @VNiko.1 and welcome to the STM32 Community :) ,
Glad to know the issue has been solved.
Please allow me to close this thread and thank you again for having updated the post.
Imen
2021-11-01 07:48 AM
Hello @VNiko.1 and welcome to the STM32 Community :) ,
Glad to know the issue has been solved.
Please allow me to close this thread and thank you again for having updated the post.
Imen
2021-11-01 10:43 AM
Ok