Skip to main content
pkulk.1
Associate II
March 9, 2022
Question

[STM32U575ZI-Q] Not able to set the USB OTG FS. The option(USBX) is disabled in the middleware section of CubeMx for USB OTG FS.

  • March 9, 2022
  • 5 replies
  • 5208 views

I am trying to set up USB OTG FS as CDC(virtual com port). For the other Nucleo board (Nucleo F746ZG) I was able to set it up in middleware section of CubeMx GUI.

With the STM32U575ZI-Q board, the option(USBX) is disabled. Also, in the device manager or computer, the port is not recognized. I am using C-type USB to USB-A also tried with C-type to C-type.

This topic has been closed for replies.

5 replies

Peter BENSCH
Technical Moderator
March 10, 2022

You've probably set USB_OTG_FS > OTG/Dual_Role_Device, correct?

Have you also activated ThreadX > Core, because this is required for USBX (also shown in the pop-up)?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
pkulk.1
pkulk.1Author
Associate II
March 10, 2022

@Peter BENSCH​ I am setting it to Device only mode. I have not activated ThreadX>Core.

Peter BENSCH
Technical Moderator
March 10, 2022

The middleware USBX, like ThreadX, is part of Azure and includes both host and device, which is why ThreadX > Core is required.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
pkulk.1
pkulk.1Author
Associate II
March 11, 2022

@Peter BENSCH​ What could be the reason for the port is not being detected and not shown in Device MAnager? I tried C-type to USB-A and Ctype to C-type.

Peter BENSCH
Technical Moderator
March 11, 2022

Of course, the USB device can only be recognised if the USB port is active and supported by software.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
pkulk.1
pkulk.1Author
Associate II
March 11, 2022

@Peter BENSCH​ Okay, I have activated the ThreadX and set the USBX. and I can see the board as a device, not as a com port(in Device Manager)(image attached).

Could you please show me how to do a simple TX and RX using USBX?

Associate III
October 16, 2023

Hi pkulk,

did you get solution for USB CDC transmit and receive ?

regards,

prakash