cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F207VC SDIO and Fatfs Problem

e_j_g
Associate II
Posted on July 11, 2016 at 11:27

Hi All

I am Using STM32F207VC And Micro SD Card With SDIO Interface And Fatfs Library

When I Debug And Trace Code, SDIO Routine Response This Error:

 

/*!< Card is not V2.0 complient or card does not support the set voltage range */

What Is Mean?

What Do I Do For debug This Error?

#fatfs #sdio #sdio #stm32f207 #dma-config-for-sdio
11 REPLIES 11
bryenton
Associate II
Posted on August 08, 2016 at 22:25

Hi,

A possibility is that if the disk has not been formatted, e.g. f_mkfs not been called, then f_open will not find a filesystem and will return the error you have.

Al

Posted on August 08, 2016 at 23:06

That is a possibility, but I think it is more probable that there is read issue with the MBR or BPB sectors. One could confirm the viability of the card in a PC, but most come preformatted. One could also inspect the data read from sector 0 and subsequent traversal of the partition table.

I've always recommended proving the SDIO layer out prior to integration with FatFs and the use of instrumentation to understand what is going on where.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..