2022-03-30 02:52 AM
A PC app sends a reset command via USB. In the main app I use HAL_NVIC_SystemReset() to reset the board. If I use HAL_NVIC_SystemReset, windows loses USB com port and does not re-enumerate port unless I plug out and plug in USB cable.
The PC app talks to USB virtual com port.
Schematics
Please support to fix this.
2022-03-30 05:19 AM
Remove R3.
JW
2022-03-30 06:17 AM
Also make sure that USB peripheral is not activated immediately after reset, Windows correctly re-enumerates USB device if it is disconected for at least some minimum time. Try to delay 20..100ms before enabling USB. 20ms delay works for me.
2022-03-30 10:28 AM
We have Remove R3 register and the USB enumeration is happening after issue NVIC_SystemReset(). Thanks for the help