Skip to main content
VNiko.1
Associate
October 27, 2021
Solved

Bug in STM32CubeMX 6.3 and the STM32F103 ver package.1.8.4. SDIO 4 bit mod ?

  • October 27, 2021
  • 2 replies
  • 1001 views

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!

This topic has been closed for replies.
Best answer by Imen.D

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

2 replies

Imen.DBest answer
ST Technical Moderator
November 1, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
VNiko.1
VNiko.1Author
Associate
November 1, 2021

Ok​