2025-09-10 6:52 PM
Hi,
I have a STM32F411CEU6 Blackpill that I'm wanting to interface to an eMMC (Raspikey to be exact via SD/MMC reader) with FATFS. I have confirmed that the connections with the SD/MMC reader are fine with a read/write test to an SD card in a different STM Project. I have a duplicated project but orietated for eMMC where I've changed the FATFS configuration to be User-defined and understand that I need to implement
- USER_initialise, USER_status, USER_Read, USER_Write and USER_ioctl
Can someone shed light or provide examples of the user_diskio.c functions for MMC/eMMC?
Thanks,
J
Solved! Go to Solution.
2025-09-16 2:35 PM
Hi Kaouthar,
Yes, thank you for this.
I did find a similar example as well that helped me out considerably and have gotten the eMMC working with the STM32F4 BlackPill. The USER_diskio source and header are attached.
Thanks,
J
2025-09-16 6:12 AM
Hello @chasej and welcome to the community;
May Watermark demonstration can help you to start with e-mmc. In this example, the e-mmc is used to mount a fatfs filesystem.
This example has been tested with STMicroelectronics STM32L4P5G-DISCO evaluation board (MB1535) and can be easily tailored to any other supported device and development board.
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-16 2:35 PM