STM32H723 USB Mass storage
I am trying to implement a USB mass storage using USB3300, STM32H723, and e eMMC.
Project Setup:
* Clock config


USB_HS Config


USB Device config

eMMC config


In the code I made these addons in the "usbd_storage_if.c" file:


Currently, my custom board is working as a Mass storage USB at a speed of 14MBps.
I found that when I removed the code line in function
"STORAGE_Read_HS()", and "STORAGE_Write_HS()":
while (HAL_MMC_GetCardState(&hmmc1)!=HAL_MMC_CARD_TRANSFER){
};
The transfer speed can be reached at 40MBps, but the data saved to the USB went wrong.
How can I speed up my USB?
