Hello,
I connected an eMMC 5.1 memory of type KLMAG1JETD-B041 to a XMC4700 Relax-Kit evaluation board. Wehn I call fformat() or fmount() from the file system API, the functions return fsMediaError. I am using an SD-Card adapter to connect it. The memory ist working when connected to a PC. I tried a FAT32 formatted memory and a blank memory. Does the Middleware (v7.16) file system support eMMC devices?
Best Regards,
Stephan
today I upgraded to middleware v8 and did some testing. The initialization of the eMMC card still fails. In the driver function mc_native_init() I did some modifications. After switching to pre-boot and commenting of sending the CMD41 and CMD55, the initialization continues until the ECSD register is read. The driver receives the 512 bytes of data, but the content is corrupted.
I tested the same card on a beagleboneblack and the eMMC card is working properly.
Is there any eMMC compatibility list available? Which eMMC types are tested successfully?
I would first check driver configuration and eMMC reset conditions. You say that you're trying to use eMMC via SD card socket? Did you also try SD card? Does it works? Because if it does, eMMC should also work out of the box.
Hello Vladimir,
thank you for the advice. The SD-Card is working out of the box. The eMMC does not work, but it does work on other devices, not using this Middleware. So far it looks like the driver is not compatible to the JEDEC specification. It is sending application commands to the eMMC card, which does not respond anymore. After commenting theses lines, the eMMC responds to the CSD command but ESCD command fails, because of data corruption.