In STM32F41xx, we are facing the problem to send data to PC. Actually we are using CDC_Transmit_FS function to send 60 bytes data to PC. But code getting stuck in if (hcdc->TxState != 0) return USBD_BUSY; } and it's not able to transmit packet using USBD_LL_Transmit function.
What could be the possible reason for this?
How to solve this problem?
Is it interrupt priority problem?
Is any thing need to change in HAL Library?
Thanks and regards,