Skip to main content
Abdelmalek BELLOULA
Associate III
February 27, 2023
Solved

Is there a bug in STM32Cube_FW_F4_V1.27.1 or in STM32CubeMX?

  • February 27, 2023
  • 3 replies
  • 1889 views

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.

This topic has been closed for replies.
Best answer by Sarra.S

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

3 replies

ST Employee
February 28, 2023

Hello @Abdelmalek BELLOULA​ 

Check this thread, it might be related

Sarra.SBest answer
ST Employee
February 28, 2023

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

Abdelmalek BELLOULA
Associate III
February 28, 2023

Thank you Sarra, I will proceed to check my hadware

Abdelmalek BELLOULA
Associate III
June 13, 2023

I installed STM32CubeMX version 6.5.0, I generated the code with STM32Cube FW_F4 V1.27.0 I get the following code


_legacyfs_online_stmicro_images_0693W00000dDhI0QAK.pngand 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


_legacyfs_online_stmicro_images_0693W00000dDhKaQAK.pngSO ?

Is there a bug in STM32Cube_FW_F4_V1.27.1 or in STM32CubeMX for SDIO?