Skip to main content
Visitor II
September 25, 2020
Solved

USBFS not enumerating as VCP

  • September 25, 2020
  • 1 reply
  • 720 views

Hello,

I m using an STM32F249I DISC1 board. I'm trying to start-off with a basic USB VCP loopback functionality. I generated the code for USBFS as a CDC Device (VCP) using CubeMx. I set the clock to 168MHz (so that USBFS is clocked at 48 MHz). I have also given appropriate Stack and Heap sizes. And I am using Windows 10.

However, the board doesn't enumerate as a VCP, in fact it isn't even detected on the bus (i.e. I don't see any activity on my PC).

What else can be the issue? Any code examples that I should refer to?

Thanks

    This topic has been closed for replies.
    Best answer by FBL

    Hi @PShri.1 

    According to the user manual, USB OTG host operation is realized once the Discovery is connected to the PC via the ST-LINK cable (mini USB). Once the USB OTG host device is detected and identified, then the USB ST-LINK cable can be removed.

    You may try the example provided in Cube firmware dedicated to other classes just to make sure it's working.

    1 reply

    FBLAnswer
    Technical Moderator
    May 10, 2024

    Hi @PShri.1 

    According to the user manual, USB OTG host operation is realized once the Discovery is connected to the PC via the ST-LINK cable (mini USB). Once the USB OTG host device is detected and identified, then the USB ST-LINK cable can be removed.

    You may try the example provided in Cube firmware dedicated to other classes just to make sure it's working.