STM32Cube STM32F756 USB Composite device CDC(VCP) + MSC(eMMC Udisk)
Hi ST Communities,
My hardware is MCU STM32F756, USB phy USB3300, eMMC mtfc2gmdea-0m.
USB is used for communication between slave and PC,USB driver is combined device class VCP+MSC, and eMMC is hooked up to FATFS.
Now the problem is that while eMMC is hooking up the file system, it is also enumerated as a USB drive through USB. EMMC can only write small data through f_wite, but it will fail to write big data.
I think it may be because eMMC hooks FATFS at the same time and enumerates the usb flash drive. It is ok to hook file system f_wite to write big data by eMMC alone. It should be confirmed that eMMC FATFS and eMMC Udisk cannot be coupled at the same time.
Now I want to unmount eMMC Udisk before eMMC f_wite writes data, but I don't know how to unmount eMMC Udisk alone in a composite device.
