STMicroelectronics / STM32CubeF7

STM32Cube MCU Full Package for the STM32F7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
331 stars 193 forks source link

STM32 USB OTG Dual Role #116

Closed Shikamru closed 7 months ago

Shikamru commented 7 months ago

HI team, I am using STM32F7 series controller. I want to use USB OTG in dual mode where I want to run USB device and Host on same application. So till now I couldn't find a single application or sample related to this, if there are any then please provide the reference here. If no then ,help me to narrow down the path for me how to achieve this.

regards, Shikamaru

ALABSTM commented 7 months ago

Hi @Shikamru,

According to this comment, it seems the STM32CubeF7 firmware does not provide the kind of applications your are looking for, indeed.

Your question has been forwarded to our development teams. I will get back to you as soon as I have their answer.

With regards,

ALABSTM commented 7 months ago

Hi @Shikamru,

Back to you with more info. Our development teams confirm there is not such example showing the dual role of the USB OTG.

However, there is this demo, STM32CubeH5/Projects/STM32H573I-DK/Demonstration/Demo showing the dual role, but of the USB-PD. Below and extract of its "readme" file.

This application demonstrates the functionalities of the Dual Role Power (DRP) and Dual Role Data (DRD) of the USB-PD protocol.

This demo has been removed from the STM32CubeH5 repository on GitHub (you can refer to this post for the rationale). Luckily, it is available on st.com.

I hope this answers your question. Please allow me to close this thread.

With regards,