cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F217VG + MicroSD + SDIO + FatFs problem

KernelSistemi
Associate II
Posted on May 07, 2014 at 10:42

Hi,

I've a problem with my STM32F217VG. I need to use fat filesystem on MicroSD card (2 GB) to read/write/create files.

I tried to use Chan FatFs module but it didn't working at all ...

I use SD card in SDIO mode.

When I debug: I call the sub ''f_mount'' and return an error! I follow the problem inside : ''disk_initialize'' >> ''SD_Init'' >> ''SD_PowerON'' >> ''CmdResp3Error'' return always ''SD_CMD_RSP_TIMEOUT'' ... with or without MicroSD !!!! I'm desperate :-(((

1. I don't know if the subs ''SD_Init'', ''SD_PowerON''... are the right ones! Where I can find the correct sub for my STM32F217 ?

2. What could be the problem ?

Thanks.

#stm32 #sdio-fatfs
2 REPLIES 2
stm322399
Senior
Posted on May 07, 2014 at 12:08

Did you checked that SDcard is connected to the MCU using the same pins that are configured in the software ?

KernelSistemi
Associate II
Posted on May 14, 2014 at 15:27

Thanks for your reply.

The problem was related to the files ''*.h'' that I used.

I downloaded the file ''stm32cubef2.zip'' and I found all the necessary files. 

Thanks again