AnsweredAssumed Answered

STM32F41xx USB CDC Transmit Problem

Question asked by Shail Shah on Dec 21, 2017



    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,

Shail Shah