2020-02-19 11:13 AM
Hi all,
I have a STM32H743 running at 400MHz with simple USB 1 wiring to an USB A jack. It works fine, no issues, runs for hours with thousands of read and write operations.
But there is one little issue that drives me crazy:
If I plug in and unplug one specific USB Stick (Intenso 8GB) sometimes after removing the stick (no read/write ongoing!), I see "USB Device disconnected" in the log (which is perfectly correct when unplugging an USB stick) but just a millsecond later, I get also "USB Device Connected" again - even though there is nothing connected to the port! After this occures, there is nothing more happening in the USB subsystem. Reconnecting any other stick does not change anything - untill a reset of the STM32, there are no more reactions, no events, no USB (dis)connect anymore.
This only happens from time to time and only with some sticks. With the SanDisk 64GB "Ultra Flair" for example, I never experienced this issue. At first, to me this looked like some hardware bounce effect, but I cannot find any unual signal behaviour on the lines.
Any ideas how to solve this? Maybe by inserting some delay(sleep) after disconnet event?
Middleware is:
Hardware:
Solved! Go to Solution.
2020-02-25 03:45 PM
I'm quite sure there may also be the same bouncing issue at the connect - alltough I must admit I never experienced this.