Using USB HAL for MSC with multiple access to storage
I am working on a design using STM32L433 as a composite USB (CDC and MSC) device using the STM32L4xx HAL and FreeRTOS. I have the device enumerating and I now need to add access to the storage medium (eMMC). The challenge I am facing is that the device needs read/write access to the eMMC as well as the USB MSC HAL.
I would like to use a storage access task to manage the eMMC access. To do this I would need to transfer some of the USB HAL code to a FreeRTOS task. Has anyone done anything similar and be willing share experiences.
It seems that moving the SCSI_ProcessRead and SCSI_ProcessWrite to the task may be one way of doing this.
Comments?
Sid
