Skip to main content
Associate
September 4, 2024
Question

STM32U575 USB CDC

  • September 4, 2024
  • 2 replies
  • 1153 views

Hello everyone,
I want to make a usb connection using USB_OTG_FS_DP and USB_OTG_FS_DM pins on the STM32U575 board. When I tried it with the examples found on the internet, it didn't work. When I tried the same method on the STM32F401 board, it was enough to select only USB_OTG_FS -> Device Only and Middleware -> USB_DEVICE -> virtual com port. What basic settings do I need to make to see my STM32U575 board as a virtual com port on the computer? I'm not very experienced in this. Thank you in advance for your help. Also, when I use the ux_device_cdc_acm example in CubeIDE, it does not appear as a virtual com port.

    2 replies

    Technical Moderator
    September 4, 2024

    Hello @beenwew ,

    Ensure that the correct driver is installed and verify that the heap and stack sizes are sufficient. 

    Did you try the USB CDC example within STM32U5 firmware?

    "When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
    beenwewAuthor
    Associate
    September 4, 2024

    Yes, I tried the ux_device_cdc_acm example for the nucleo u575zi in the cube ide application. All I did was debug and plug in the usb type c cable and upload this example to the card.

     

    Associate
    September 3, 2025

    I use AZRTOS with USBX on stm32L562 for composite USB and i have this same problem - @beenwew  do you resolve problem ? debug stay in this same place on:

    B __tx_wait_here // Wait for the PendSV to happen