cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H750B-dk: access eMMC through USB OTG

Prajyot1
Associate III

Split from this thread as it has been solved, and this is a new question:


 

How to access eMMC through OTG on STM32H750B-DK kit.?

9 REPLIES 9
Prajyot1
Associate III

How to configure eMMC to access through OTG.?

FBL
ST Employee

Hi @Prajyot1 

You can start with the example to read and write to eMMC card as a first step. Then, you can refer to the application on how to interface to a PC host through USB MSC. The application itself uses SD card as storage media so in your case you need to use eMMC instead .

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.


Hello @FBL 
i was able to read write to eMMC card with the help of `~\STM32Cube_FW_H7_V1.12.1\Projects\STM32H745I-DISCO\Applications\FatFs\FatFs_Shared_Device` and `~\STM32Cube_FW_H7_V1.12.1\Drivers\BSP\STM32H750B-DK`. the next i want to use eMMC as Storage Media.

Hello @FBL ,
i have implemented application you have refer on how to interface to PC host through USB MSC . i have implemented EMMC driver mounted on STM32H750B-DK in usbd_storage_if.c  but PC is not detecting eMMC as storage media. i have shared usbd_storage_if.c . i hope you can check and share the implementation is correct or not. also do i have to change jumper to USBFS (CN13) in order to access?
Thank you.

Hi @Prajyot1 

Attached the project. Copy project under STM32Cube\Repository\STM32Cube_FW_H7_V1.12.1\Projects\STM32H745I-DISCO\Applications\USB_Device to compile correctly.

The STM32H745I-DISCO and STM32H750B-DK boards support USB OTG full-speed communications via the CN13 USB Micro-AB connector.

FBL_0-1750434243820.png

 

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.


Hello @FBL ,
i have updated code from that repository but still it's not detecting.

I have attached the updated project file. Could you please examine the project and provide your insights on potential misconfigurations or missing steps that might be preventing eMMC detection? Any specific recommendations or adjustments to the code would be greatly appreciated.

WhatsApp Image 2025-06-24 at 14.59.14_85af804a.jpg     WhatsApp Image 2025-06-24 at 14.59.15_f3294344.jpg

Thank you!

FBL
ST Employee

Hi @Prajyot1 

JP8 is configured on ST Link only. I have 2 cables used one for ST Link interface (+power) over CN14 and the other for USB communications over 'CN13'. 

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.


yes i have tried that too just now .. but still same issue.. if it either configuration issue or coding issue?

UPDATE:
the PC detects eMMC sometimes and sometimes it doesn't when i plug it into PC. Also i am not able to format this disk too. it gets disconnected after sometime.

Prajyot1_0-1750998518251.png