cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 with USBX, MSC and CDC causes sporatic USB disconnect

kumaichi
Associate III

Hello All,

I'm trying to keep my MSC + CDC USBX connection alive on my STM32U575.  When I connect the device via USB cable, Windows Explorer opens and displays the files on the W25Q NOR Flash.  I can select a file and open it from the flash.  I can also open Tera Term and connect to the device.  I created a ThreadX task to write out text over CDC every 5 seconds.  After a random amount of time, Tera Term stops writing out the text and lock up and even though the device is displayed in Windows Explorer, if I try to open a file, it fails, with a timeout error.

I've explored the U5 samples, but I can't find any differences between the MSC or CDC projects and my project.  None of the samples, that I've found, are doing anything in the callbacks or change methods that would indicate the handling of some kind of "timeout" issue from the USB host.

Any guidance to why the device just stops communicating with the windows machine would be greatly appreciated.  If any of my source would be worthwhile, I'd be happy to show what I've got.

Kindest regards

0 REPLIES 0