Skip to main content
Visitor II
March 10, 2025
Question

initialize FATFS for SDMMC in M4

  • March 10, 2025
  • 1 reply
  • 437 views
Hi team 
 
   
What is the correct procedure to initialize FATFS for SDMMC in M4? Kindly provide the application note of the procedure. We need to run eMMC in M4 core 
 
EVK used : STM32H745I-DISCO
 
 
Please find the information below for your reference.
 Test Case 1:
------------
In M4,
SDMMC configurations:
1. SDMMC peripheral selected for M4.
2. SDMMC Clock configuration: 100 MHz
3. SDMMC Clock divide factor: 4
4. Mode: MMC 4 bits Wide Bus
5. Clock Edge: Rising Edge
6. Clock Power Save: Disable 
7. Hardware Flow Control: Disable
 
FATFS configurations:
- FATFS Package used from FatFs_Shared_Device project of GitHub. 
- Replaced the FATFS package from the reference project with the one in STM32Cube_FW_H7_V1.11.2 repository.
 
Conclusion:
- Unable to initialize MX_FATFS_Init() in int main()
 
Test Case 2:
------------
In M7,
 
SDMMC configurations:
1. SDMMC peripheral selected for M7.
2. SDMMC Clock configuration: 100 MHz
3. SDMMC Clock divide factor: 4
4. Mode: MMC 4 bits Wide Bus
5. Clock Edge: Rising Edge
6. Clock Power Save: Disable 
7. Hardware Flow Control: Disable
 
FATFS configurations:
- FATFS Package used from FatFs_Shared_Device project of GitHub. 
- Replaced the FATFS package from the reference project with the one in STM32Cube_FW_H7_V1.11.2 repository.
 
Conclusion:
- Able to initialize MX_FATFS_Init() in int main()
 
This topic has been closed for replies.

1 reply

ST Technical Moderator
May 13, 2025

Hello @Ashwath 

What is the error you are getting when initializing the SDMMC?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om