Skip to main content
Dannis Wong
Visitor II
Apr 3, 2018 2:33 AM UTC
Question

Using CubeMX to make a OTG FS VCP

Posted on April 03, 2018 at 04:33

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

    This topic has been closed for replies.