Skip to main content
Visitor II
June 19, 2025
Question

USB_DEVICE Not Recognized on STM32L562CEU6P Board

  • June 19, 2025
  • 1 reply
  • 570 views

Hi everyone,

I'm developing on an STM32L562CEU6P board using STM32CubeIDE on a Windows 11 laptop.

In my project, I'm trying to use the USB_DEVICE feature, but when I run the project, my computer fails to recognize the USB device.

What I've tested so far:

  • I tested the same board on a desktop computer running Windows 10 – the USB device was recognized successfully.
  • I tested a different board (NUCLEO-F767ZI) on my laptop – it was recognized without issues.
  • I verified that the physical connection is fine, drivers are installed, and there are no hardware issues.

My questions:

  • Could there be a difference in USB recognition between desktop and laptop computers?
  • Could this issue be related to the operating system (Windows 11 vs. Windows 10)?
  • Are there any specific drivers or settings required for the STM32L562CEU6P board?

I’d really appreciate any help, suggestions, or insights :folded_hands:
Thanks!

    This topic has been closed for replies.

    1 reply

    Super User
    June 19, 2025

    Welcome to the forum.

    You need to give some more detail - please see: How to write your question to maximize your chances to find a solution for best results.

    In particular:


    @Danit wrote:

    I'm developing on an STM32L562CEU6P board


    What board, exactly?

    If it's a custom board, please provide the schematics.

     

    Also details of your software.

    DanitAuthor
    Visitor II
    June 25, 2025

    Hi, thanks for your support

    I'm using STM32CubeIDE version 1.7.0 with a custom board based on STM32L562CEU6P.

    hardware schematic of the board – images are attached for reference - schematic and schematic1.

    1. In ioc file, I configured:

      • PA11 as USB_DM and PA12 as USB_DP (image GPIO USB PA11 and PA12).
      • USB mode set to Device FS (image Device FS).
      • USB class set to CDC (image middleware USB device CDC).
      • Clock source set to HSI48 at 48 MHz (image clock configuration).
    2. The project includes calls to:

      • MX_USB_DEVICE_Init()
      • CDC_Transmit_FS() for data transmission.
    3. Despite this setup, I still get the following error on my Windows 11 laptop:"Unknown USB Device (Device Descriptor Request Failed)"
      (Screenshot attached in the original post)

    Thanks again!

    Device FS.png

    middleware usb device CDC.png

    clock configuration.png