2023-02-27 11:19 AM
I'm using STM32CubeIDE 1.11.2 and STM32CubeMX Version: 6.7.0.
I have a question regarding the implementation of the SDIO SD card in 4 bit mode on a stm32F407 card
I am using the following configuration
SDIO Global interrupt, SDIO_RX and SDIO_TX DMA
SDIOCLK clock divide factor 5
Unfortunately it doesn't work. The f_mount function returns an error (Error SD card)
On the other hand if I replace SDIO_BUS_WIDE_4B by SDIO_BUS_WIDE_1B
line hsd.Init.BusWide = SDIO_BUS_WIDE_1B; as shown the program works.
Solved! Go to Solution.
2023-02-28 02:20 AM
Hello again @Abdelmalek BELLOULA
Well, after some investigation, the bug mentioned in the thread is fixed in STM32CubeMX Version 6.7.0 which you are using.
In this case, I think the problem is the compatibility between the configuration (4B) and your hardware ( SD card) since you get error SD card
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-28 01:53 AM
Hello @Abdelmalek BELLOULA
Check this thread, it might be related
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-28 02:20 AM
Hello again @Abdelmalek BELLOULA
Well, after some investigation, the bug mentioned in the thread is fixed in STM32CubeMX Version 6.7.0 which you are using.
In this case, I think the problem is the compatibility between the configuration (4B) and your hardware ( SD card) since you get error SD card
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-28 10:18 AM
Thank you Sarra, I will proceed to check my hadware
2023-06-13 05:06 AM - edited 2023-11-20 08:19 AM
I installed STM32CubeMX version 6.5.0, I generated the code with STM32Cube FW_F4 V1.27.0 I get the following code
and it works well and no error in the hardware I checked everything
on the other hand with the latest version of STM32CubeMX 6.8.1, I get the following code: and my program crashes
SO ?
Is there a bug in STM32Cube_FW_F4_V1.27.1 or in STM32CubeMX for SDIO?