2021-03-04 03:30 AM
Dear Customer Support
I'm using the USB CDC class (Virtual COM Port) on STM32H7.
When I unplug and plug the USB cable during comport communication, occasionally, the device manager display shows "Unknown USB device (device descriptor request failed)".
If this happens, it will not recover until the device is turned off and on.
Is there a way to solve this problem?
Best Regards,
2021-03-04 04:05 AM
Hi KKado.1,
You may have a look at the STM32CubeH7 Firmware package under directory: \Projects\$Board_Name$\Applications\USB_Device\CDC_Standalone
or you can share with me your .ioc in order to help you, or report the issue internally if necessary.
Best Regards,
Ons.
2021-03-04 06:20 PM
Dear Ons KOOLI:
Thank you for your quick reply.
I attach two .ioc files.
I have added a USB CDC class to an existing project.
(A) is the .ioc file of the existing project, and (B) is the one with USB function added to it.
I generated the source code in the .ioc file in (B) and merged the diffs into the existing source code in (A).
(A)STM32H_240BGA_07.ioc
(B)CDC_VCP3.ioc
I would appreciate if you can comment on that.
Best Regards,
2021-03-09 07:55 AM
Hi KKado.1,
If I well understand, (A) is your original project and you want to add (B) to it. Is this what you want to do ? You want to add CDC to your existing project which already has a specific functionality ?
What I propose for you is the following:
I hope this is helpful.
Best Regards,
Ons.
2021-04-02 07:57 AM
Hi KKado.1,
Any updates on this question,
Best Regards,
Ons.