AnsweredAssumed Answered

Using CubeMX to make a OTG FS VCP

Question asked by Dannis Wong on Apr 3, 2018

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 */
}

Outcomes