Skip to main content
Charlie CHEN
Associate III
November 25, 2019
Question

eMMC with FATFS (Need Help!)

  • November 25, 2019
  • 4 replies
  • 1123 views

Hi all,

​

I have already built a project with STM32CubeMX ,and tried to read & write files in eMMC storage using FATFS.

And now I can read the SDcard information & files by using FATFS, but for eMMC just can not and always return FR_DISK_ERR. I have used the USB function to connect to eMMC and it can format and open like disk , but using FATFS just return FR_DISK_ERR.

​

Is there anything need to be set or corrected for eMMC storage?

By the way, Is eMMC and SDcard using the same function and same method on read & write​?

​

Detail Information :

MCU : STM32H743XI

eMMC storage : Micron 4GB

​

​

Thanks for anyone can help, just need a little tips or some suggests !

Wish you have good day!

This topic has been closed for replies.

4 replies

Charlie CHEN
Associate III
November 26, 2019

Is there someone can help?

Tesla DeLorean
Guru
November 26, 2019

Really don't have hours of time to chase down OPP, especially with CubeMX.

​

Stop debugging at the top level​, but rather instrument the lower level code to understand the command sequences and what the chip is actually getting as an error.

​

Validate DISKIO layer properly.​

​

Command subset and expectations for eMMC slightly different to SD/MMC​ cards.

​

Have eMMC working on H7 platforms, so is possible.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Charlie CHEN
Associate III
November 26, 2019

Hi @Community member​ ,

Thanks for your reply!

Do you mean the HAL file need to be modified?

I have referenced the official project in CubeMX Example Code , but see nothing changed except the eMMC associate code.

Or,Is there some application code I can reference?

Thanks you again!!

Charlie CHEN
Associate III
November 27, 2019

Hi @Community member​ 

I just want to ask about ,Is there some sample code can let me reference?

I`ll really appreciate!

Thank you!