Skip to main content
SAlug.1
Associate II
Mar 30, 2022 9:52 AM UTC
Question

USB interrupt issue after NVIC System Reset on STM32F411CCU6TR

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.

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
Mar 30, 2022 12:19 PM UTC

Remove R3.

JW

SAlug.1
SAlug.1Author
Associate II
Mar 30, 2022 5:28 PM UTC

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

gbm
Super User
Mar 30, 2022 1:17 PM UTC

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