2019-11-24 05:42 PM
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!
2019-11-25 11:42 PM
Is there someone can help?
2019-11-26 01:57 AM
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.
2019-11-26 02:04 AM
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!!
2019-11-26 09:34 PM
Hi @Community member
I just want to ask about ,Is there some sample code can let me reference?
I`ll really appreciate!
Thank you!