Skip to main content
PyKe
Associate III
May 27, 2021
Solved

How to interface EMMC with STM32H743XIH ?

  • May 27, 2021
  • 4 replies
  • 7485 views

Hi all,

This is my first project trying to configure an EMMC memory with my stm32H743XIH MCU, and unfortunatly i didnt find any exemples of projects so i can understand how this works !

I'm facing two problems on my first try project :

1) Create project on cubeMX

  • SDMMC ==> MMC 8bits Wide Bus
  • FatFS ==> Couldn't select it on cubeMX (i think only available with SD Cards)

2) I found no exemple of code to read/write from an emmc memory, all projects i found are with SD Cards.

I will appreciate any help from you guys :)

Thank you.

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

STM32Cube_FW_H7_V1.8.0\Projects\STM32H745I-DISCO\Applications\FatFs\FatFs_Shared_Device\Common\Src\mmc_diskio.c

4 replies

Tesla DeLorean
Guru
May 27, 2021

Sorry not using the Cube stuff here, but there should be example code for the H745I-DISCO that will port.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PyKe
PyKeAuthor
Associate III
May 27, 2021

Thank you for your answer !

Can you point me to a good project exemple for filesystem/eMMC please ?

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 27, 2021

STM32Cube_FW_H7_V1.8.0\Projects\STM32H745I-DISCO\Applications\FatFs\FatFs_Shared_Device\Common\Src\mmc_diskio.c

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PyKe
PyKeAuthor
Associate III
May 27, 2021

Thank you very much I will work on this exemple code.

PyKe
PyKeAuthor
Associate III
May 27, 2021

is there any other way to work use file system with the eMMC without using cube ?

Tesla DeLorean
Guru
May 27, 2021

Not sure I understand the question, the HAL contains support for MMC, the FatFs middleware is usable everywhere, just need to tailor the DISKIO layer to the medium/driver. ST's made most of the interfaces in an orthogonal way, so most times you can do a search/replace for most of the API, and then do a bit of cleanup.

Materially very similar to the SD Card implementations. Depend how confortable you are with porting existing things as templates, or merging in the individual components.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PyKe
PyKeAuthor
Associate III
May 27, 2021

I understand better now thank you for the explaining !