Device manager not recognizing USB cdc ecm device

SMt.1 0 Reputation points
2023-02-23T20:04:18.0333333+00:00

Hello, I currently have an stm32 project that uses usb cdc ecm to transfer data. Currently, when I plug the cable (from STM32 USB device) into the computer, it does not recognize the CDC-ECM device in other devices, rather labelling it as an STM32 Virutal ComPort in FS.

User's image

User's image

I have tried changing the VID and PID (I was using the ECM ones from the android ether library) back to default STM32H7 ones. Additionally, I have tried changing device class and subclass values in usb device descriptor file to 0x02 as recommended on the Microsoft site for usbser.sys on Windows 10 and see additional events for the port. However, none of these have solved the issue, and I still see 'Code 28'. The Update Drive option is also greyed out for me.

User's image

Additionally, the STLink Virtual COM Port is showing that it is using the usbser driver successfully, so I'm not sure why the actual board is not doing the same.

User's image

Is there a driver install that needs to be done or a setting to change for this?

Thank you.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-02-24T13:52:54.4766667+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query

    According to this article https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/usb-device-not-recognized-error, you can try to uninstall and then reconnect the external hard drive

    This method resolves issues where the currently loaded USB driver has become unstable or corrupt.

    Select Start, type Device Manager in the Search box.

    Select Device Manager from the returned list.

    Select Disk Drives from the list of hardware.

    Press and hold (or right-click) the USB external hard drive with the issue, and select Uninstall.

    After the hard drive is uninstalled, unplug the USB cable.

    Wait for 1 minute and then reconnect the USB cable. The driver should automatically load.

    Check for the USB drive in Windows Explorer.

    Please see the attached link for more information.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.


  2. Limitless Technology 44,751 Reputation points
    2023-02-24T13:53:08.16+00:00

    Double post

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.