Here was my solution :-In file stm32f4xx_hal_def.h :-// workaround for terrible design of HAL lock use in USB driver
#define __HAL_LOCK_RX(__HANDLE__) \
do{ \
if((__HANDLE__)->LockRx == HAL_LOCKED) \
...
Posted on January 29, 2016 at 23:52I just came across a very similar issue using a MIDI USBD driver (based on the AUDIO USBD driver from STMCubeMX.The issue I had is that both the HAL_PCD_EP_Transmit and HAL_PCD_EP_Receive functions both use the sam...