2018-04-02 07:33 PM
I use CubeMX to make a OTG FS VCP, seems OK, data can transmit and receive, but there is a problem, PC software send a command to MCU, and I stop PC program, command keep received in MCU. I set a break point to check, software always go to 'void OTG_FS_IR
void OTG_FS_IRQHandler(void)
{
uint8_t rece;
/* USER CODE BEGIN OTG_FS_IRQn 0 */
/* USER CODE END OTG_FS_IRQn 0 */
HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS);
/* USER CODE BEGIN OTG_FS_IRQn 1 */
/* USER CODE END OTG_FS_IRQn 1 */
}�?�?�?�?�?�?�?�?�?�?