Skip to main content
Graduate
April 22, 2025
Question

USB OTG Dual Role

  • April 22, 2025
  • 1 reply
  • 290 views

Hi STM Team,

 

I am using STM32H723ZGT6 Microcontroller for my new project, I am using Azure RTOS for My application.

I required to copy my data to Pendrive (I am using USB Host Only Mode and USBX and FileX).

As well as i also required to use USB CDC ACM for my other device Virual COM Communication as USB Device mode.

When I select USB OTG Dual Role in STM Cube MX, there is no applications and examples given to use dual role as USB Host and Device at same time.

Is Any Hardware Changes are required? Now I am using Nucleo-STM32H723Z Development Board for this testing.

Can you Help On this.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    April 22, 2025

    Hi @rkuma.21 

    Check the example provided in  ST-TOMAS-Examples-USB/H7A3_USBX_DualRoleThe host currently is HID host waiting for a mouse. Device is CDC VCP with loopback.