cancel
Showing results for 
Search instead for 
Did you mean: 

eMMC with FATFS (Need Help!)

Charlie CHEN
Associate II

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!

4 REPLIES 4
Charlie CHEN
Associate II

Is there someone can help?

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 Up vote any posts that you find helpful, it shows what's working..

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 II

Hi @Community member​ 

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

I`ll really appreciate!

Thank you!