Skip to main content
Associate II
April 2, 2019
Solved

How to make SDIO & eMMC FatFs Work with STM32F4 ?

  • April 2, 2019
  • 1 reply
  • 4980 views

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

This topic has been closed for replies.
Best answer by Tesla DeLorean

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.

1 reply

Tesla DeLorean
Guru
April 2, 2019

>>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 VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
April 2, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
McherifAuthor
Associate II
April 3, 2019

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.