Skip to main content
Visitor II
December 7, 2019
Solved

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

  • December 7, 2019
  • 1 reply
  • 1414 views

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.
    Best answer by waclawek.jan

    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

    1 reply

    Super User
    December 7, 2019

    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

    Visitor II
    December 7, 2019

    Thanks again, it very helpful also.