Skip to main content
Hueli.1
Associate III
Mar 8, 2023 11:43 AM UTC
Solved

Configuration of SDMMC peripheral in CubeMX

I am trying to connect to the WFM200 wifi module over SDIO. I am using the SDMM peripheral library/code for this.

However, in the selection in CubeMX there is only the options for SD and MMC but no SDIO.

Which option should I choose for using SDIO with the WFM200?

0693W00000aITSEQA4.png

This topic has been closed for replies.
FBLBest answer
ST Technical Moderator
Apr 13, 2023 5:22 PM UTC

Hello @Hueli.1​,

Here is an example to configure SDIO. You may need to increase the SDIOCLK divide factor if getting FR_DISK_ERROR


_legacyfs_online_stmicro_images_0693W00000bi2xBQAQ.pngHope this helps!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL

2 replies

FBLBest answer
ST Technical Moderator
Apr 13, 2023 5:22 PM UTC

Hello @Hueli.1​,

Here is an example to configure SDIO. You may need to increase the SDIOCLK divide factor if getting FR_DISK_ERROR


_legacyfs_online_stmicro_images_0693W00000bi2xBQAQ.pngHope this helps!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Hueli.1
Hueli.1Author
Associate III
Apr 14, 2023 6:30 AM UTC

thank you for the answer.

I now went with low gpio speed also to reduce noise in the signal since I am using a nucleo allowing only speeds up to ca 400kHz without distorision:


_legacyfs_online_stmicro_images_0693W00000bi56yQAA.png