Page 1 of 2

STM32F4XX MMC/SDC driver status

Posted: Sat Nov 09, 2013 1:07 pm
by ucasano
Hello, is it safe to use the MMC over SDC driver included in the 2.6.1 release of the os?
Is the 8 bit bus supported?
-g

Re: STM32F4XX MMC/SDC driver status

Posted: Sat Nov 09, 2013 3:50 pm
by Giovanni
It should be safe, I never tested the 8bits mode.

Giovanni

Re: STM32F4XX MMC/SDC driver status

Posted: Sat Nov 09, 2013 6:46 pm
by ucasano
Really nice!

In order to start development the right way, where could I find sample code of mmc/sdc using SDIO?

Thank you!
-g

Re: STM32F4XX MMC/SDC driver status

Posted: Sat Nov 09, 2013 7:30 pm
by Giovanni
Look for the demos using FatFS.

Giovanni

Re: STM32F4XX MMC/SDC driver status

Posted: Sun Nov 10, 2013 6:53 pm
by ucasano
Ok, I will take a look! Thank you!
-g

Re: STM32F4XX MMC/SDC driver status

Posted: Tue Nov 12, 2013 7:04 am
by nikhilz
hi

Im integrating micro sd card to stm32f4 discovery board using SDC driver.Initially I formatted the sd card uisng FAT32 and called sdcConnect(&SDCD1) function ,it returns zero and then I'm trying to mount the file system using f_mount(0, &SDC_FS);This function returns FR_OK.After that when I tried to open a file using f_open it is returning FR_DISK_ERR.What might be the reason?Is there any sample code to refer?

Re: STM32F4XX MMC/SDC driver status

Posted: Tue Nov 12, 2013 9:24 am
by Giovanni
I don't have FatFS code at hand, the demos are very simple but I know several people is using FatFS without problems. If you have a chance try to join the IRC chibios channel and ask there.

Giovanni

Re: STM32F4XX MMC/SDC driver status

Posted: Tue Nov 12, 2013 12:44 pm
by ucasano
The FATFs works really nice with STM32F4 and ChibiOS.

I think you should take care of accessing files on your card from the same process: I will suggest you to use a logger process, containing all the stuff relative
to FATFs.

Bye.
-g

Re: STM32F4XX MMC/SDC driver status

Posted: Wed Nov 13, 2013 10:23 pm
by kenyee
ucasano wrote:The FATFs works really nice with STM32F4 and ChibiOS.


Did you have to do anything special to get FATFs to work?
Or is it just a simple compile/link to your program?

Re: STM32F4XX MMC/SDC driver status

Posted: Tue Nov 19, 2013 1:05 pm
by nikhilz
Hi,

Now f_open,f_read,f_close functions are working.But f_write function still gives disk error.This error is causing by the 'create chain' function.Internally this is causing by "get_fat" function,
case FS_FAT32 :
test3 = move_window(fs, fs->fatbase + (clst / (SS(fs) / 4)));
This move_window returns FR_DISK_ERR.

Any idea?