cancel
Showing results for 
Search instead for 
Did you mean: 

How to make SDIO & eMMC FatFs Work with STM32F4 ?

Mcherif
Associate II

Hello

I am using :

  • STM32F413HDESCOVRY
  • STM32 CubeMX tool
  • Atollic TrueStudio V9.3
  • eMMC : Kingston EMMC04G

I already created the files

  • user_discio.c
  • user_discio.h
  • eMMC_Driver.c
  • eMMC_Driver.h

when i use f_mount i get FR_NO_FILESYSTEM

0690X0000089iuXQAQ.jpg

thx

1 ACCEPTED SOLUTION

Accepted Solutions

Capacity seems all wrong for a 4GB eMMC, and I'm not sure I've coded to manage anything below 2GB

The ODROID cards with their MicroSD adapter connect more directly into the STM32 DISCO/EVAL boards.

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

View solution in original post

8 REPLIES 8

>>when i use f_mount i get FR_NO_FILESYSTEM

Blank eMMC devices will need to be formatted. If you've validated the READ, and then WRITE functionality, you're ready to use f_mkfs()

I found these ODROID cards to be less of a circus

https://www.hardkernel.com/shop/8gb-emmc-module-c2-android/

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

STM32F413H-DISCO eMMC test code, blind port, I don't own this board.

Outputs via VCP at 115200 8N1, at first prompt hit ENTER, will prompt to format if necessary.

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

Thank you for your reply. I tried your source code it happens to connect with the eMMC but it can neither write nor erase. I tested it with several eMMCs always the same thing in the attached file you find all msg. 

Capacity seems all wrong for a 4GB eMMC, and I'm not sure I've coded to manage anything below 2GB

The ODROID cards with their MicroSD adapter connect more directly into the STM32 DISCO/EVAL boards.

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

Hello @Community member​ 

Thanks for all the valuable. We solved the problem and all seems correct now. 

Do you have stm32f4 emmc 5.1 example working with iNAND 7250 ?

Hello dear Mcherif 
I have a similar challenge to you
Would it be possible to explain and post a sample code where FATFS is implemented via SDIO on EMMC memory.

I'd also be interested in your outcome especially of the FATFS... It would be nice to have a list of things working and the code that goes along with it. It might also be interesting for future users if it is only for reference...