we have an issue with HAL when trying to stop and re-start CDC VCP. Board is discoF4. Based on the example USB_Device/CDC_Standalone/Src/main.c the code works fine after reset (DSPD=11, USBD_STATE_CONFIGURED). Once modified the example we try to stop it using: (A)
When re-starting with the same sequence:
USBD_Init(&USBD_Device, &VCP_Desc, 0);
It enters USBD_STATE_SUSPENDED with DSPD=01 and shows <<unknown device>> (43). We get the same result if we use:
instead of (A) to try to stop CDC VCP. Would be very grateful if anyone could provide guidance on how to properly stop and re-start CDC VCP. Thanks in advance.