2015-10-02 08:00 PM
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 #cubemx2015-10-05 01:19 AM
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.2015-10-07 10:34 AM
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?
2015-10-07 11:08 AM
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 SDIOhttp://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 helpful2015-10-08 03:06 AM
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?