Skip to main content
Associate III
Dec 7, 2019 7:27 AM UTC
Solved

Where can I read example of USB OTG driver for STM32F4x?

Hello everyone,

I want use USB port as USB OTG but firmware do not support this mode, instead Device and Host modes separately. Where can I read example of USB OTG driver implementation for free?

Thanks in advance

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Dec 7, 2019 8:54 AM UTC

OTG is implemented in the pre-Cube, SPL version of the USB drivers, but be prepared that they are written in a very different style from Cube.

https://community.st.com/s/question/0D50X0000BaKnNQ/usb-otg-device-host-switching-using-usb-id-pin-example-

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
Dec 7, 2019 8:54 AM UTC

OTG is implemented in the pre-Cube, SPL version of the USB drivers, but be prepared that they are written in a very different style from Cube.

https://community.st.com/s/question/0D50X0000BaKnNQ/usb-otg-device-host-switching-using-usb-id-pin-example-

JW

Associate III
Dec 7, 2019 9:25 AM UTC

Thanks again, it very helpful also.