cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX Newbie Question

ymhsieh
Associate II
Posted on October 03, 2015 at 05:00

I intend to use SDIO with STM32F103C8 MCU and am trying to generate initialization code from CubeMX.

It turns out, SDIO is NOT available for STM32F103C8 MCU in CubeMX.  Is there a good reason why this cannot be done with CubeMX? 

Thanks,

Yo

#sdio #stm32f1 #cubemx
4 REPLIES 4
qwer.asdf
Senior
Posted on October 05, 2015 at 10:19

A very good reason indeed.

http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN1565/PF164476

doesn't have SDIO. At least officially. It seems you should use the SPI interface to speak your microSD card or use a bigger microcontroller (64 pins), for example STM32F103RC.
ymhsieh
Associate II
Posted on October 07, 2015 at 19:34

One very good reason I had to raise this question is because the HAL driver I downloaded for this MCU includes ''stm32f1xx_ll_sdmmc''.  Also, the SPL for this MCU also has stm32f10x_sdio.h.  So I thought this MCU can support SDIO? 

Posted on October 07, 2015 at 20:08

The STM32F10x family is pretty broad. Most don't support SDIO, while all can support MMC/SD via SPI with suitable drivers

I know High Density series parts support SDIO

http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN1565/PF164495

You'll have to comb through the Data Manual to get a feel for the features in each of the die.

The block diagram on the product page can be helpful

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ymhsieh
Associate II
Posted on October 08, 2015 at 12:06

Great, thank you for your response.  It is clear to me now.

So, if I intend to access SD/MMC card using STM32F103C8, the only way is using SPI and does every dirty job myself (including FAT file system).  

stm32f1xx_ll_sdmmc or stm32f1xx_hal_sd all depends on SDIO capability of MCU, right?