cancel
Showing results for 
Search instead for 
Did you mean: 

Using CubeMX to make a OTG FS VCP

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

0 REPLIES 0