NUCLEO STM32U575ZI-Q USB Device CDC Problem
Hello,
I am trying to use the STMicroelectronics classic USB device middleware to implement a CDC class in the STM32U575 microcontroller. I am currently working on NUCLEO-u575ZI-Q. At first, I followed the tutorial on "How to use STMicroelectronics classic USB device middleware with new STM32 families" by @B.Montanari (https://community.st.com/t5/stm32-mcus/how-to-use-stmicroelectronics-classic-usb-device-middleware-with/ta-p/599274) but I encountered the same errors pointed out in the tutorial comments by other users with STM32U5. Then, I created a new project and used the "STM32U5 classic core Middleware Firmware Package" repository (https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps) without any success.
In the end, I created another project using the USB Device CDC Standalone Library for STM32U5 (https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps/tree/main/Projects/NUCLEO-U575ZI-Q/Applications/USB_Device/CDC_Standalone/USB_Device) and the classic USB Device Middlewares (https://github.com/STMicroelectronics/stm32_mw_usb_device/tree/2022e75b01a499b17acd17d28691b1ed5bbef2dc). In this case, I was able to successfully compile my project without any error but I can't see the VCOM generation on my PC. When entering Debug mode I see that the MX_USB_Device_Init() does not return any error but still, I can't see the VCOM.
In the .ioc file, the USB_OTG_FS is set in "Device_Only" mode, the VBUS is activated and the USB OTG FS global interrupt is enabled. In the RCC, the HSE is set as BYPASS Clock Source, and the LSE is set as Crystal/Ceramic Resonator. In the Clock Configuration settings, I checked that CLK48 Clock Mux returns 48 MHz to USB. In the images below you can see the aforementioned .ioc settings, while the .rar is the last project described.
I would like to know if:
- Is there an available project using the CDC transmit successfully working on the stm32u5 microcontroller? (I couldn't find any)
- Is there an alternative option to implement the CDC class without using threadX and USBX for stm32u5?
- Can it be that the problem is related to Windows 11 drivers?
Thanks
Best regards




