Skip to main content
HMaje.1
Associate III
February 5, 2020
Question

SD card interface code genereated by STM32CUbe32 (5.5.0)

  • February 5, 2020
  • 14 replies
  • 2526 views

i would request imen to let us know if the STM32CubeMx 5.5.0 is addressing all the issues regarding SD card interface using SDMMC ( 4 bits and DMA). Since the code generated from CubeMX 5.5.0 for nucleo-l476rg BOARD for SD card interface does not work.

if i program the same board with

STM32Cube_FW_L4_V1.15.0\Projects\STM32L476G-EVAL\Applications\FatFs\FatFs_uSD_Standalone ,

the SD card can be written as well as read.

This topic has been closed for replies.

14 replies

ST Technical Moderator
February 6, 2020

Hello,

Could you please provide your ioc file to check your issue.

Best Regards,

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
HMaje.1
HMaje.1Author
Associate III
February 7, 2020
Hi Imen Dahmen,

Thank you for reply.

Please find attached the newSD.IOC

Thanks,
Hitesh
ST Technical Moderator
February 7, 2020

Thank you @HMaje.1​  for providing more details and sharing your ioc file.

This issue is raised internally to CubeMx team for check and analyze, then we will come back to you with update.

Best Regards,

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
HMaje.1
HMaje.1Author
Associate III
February 8, 2020

Thanks Imen,

I am attaching the project, if it can help in the analyze process.

Thanks,

Best Regards,

Hitesh

Khouloud ZEMMELI
ST Employee
February 10, 2020

​Hello @HMaje.1​ ,

Issue fixed, the fix will be available in the next CubeMX release.

Best Regards,

Khouloud

HMaje.1
HMaje.1Author
Associate III
February 10, 2020

Hi Khouloud,

Thank you for the FIX. I hope this fix would be applicable to all stm32L series.

when should we expect the new version ( error fixed) ?

Once again thanks and awaiting for the fix.

Regards,

Hitesh

Khouloud ZEMMELI
ST Employee
February 10, 2020

​Hi, It will be W08.

Best Regards,

Khouloud

HMaje.1
HMaje.1Author
Associate III
February 23, 2020

HI Imen & Khouloud,

Thanks for cube32mx upgrade to 5.6.0.

I have upgraded the CUbeMX and firmware to the latest. my cubeMX version is 5.6.0.

and the firmware package is STM32Cube FW_L4 V1.15.1

I generated the project using the updated version ( IOC and SRC files as attached in ZIP file).

My program passes through f_mount and f_open successfully but return an error for f_write.

The same board with same setup, I flashed with

STM32Cube_FW_L4_V1.15.0\Projects\STM32L476G-EVAL\Applications\FatFs\FatFs_uSD_Standalone ,

and I was able to write and read in the SD card.

Please find attached the zip file containing my IOC and main.c file.

Request to please help to sort out the problem.

HMaje.1
HMaje.1Author
Associate III
February 27, 2020

Hi Imen & Khouloud,

i have tried the above in various possible alternatives like enabling DMA for both TX and RX, enabling only for SDMMC, but no luck.

please le me know if can share any other project details to enable your team to find the problem ?

Thanks,

Best Regards,

Hitesh

HMaje.1
HMaje.1Author
Associate III
February 28, 2020

Hi Imen,

Request to please help to solve the above issue, as for my project, data logging is prime function.

Thanks,

Best Regards,

Hitesh