cancel
Showing results for 
Search instead for 
Did you mean: 

USB interrupt issue after NVIC System Reset on STM32F411CCU6TR

SAlug.1
Associate II

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

0693W00000LwFudQAF.png0693W00000LwFvvQAF.png 

Please support to fix this.

3 REPLIES 3

Remove R3.

JW

gbm
Lead III

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.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

We have Remove R3 register and the USB enumeration is happening after issue NVIC_SystemReset(). Thanks for the help