Skip to main content
Vijetha hn
Associate II
February 22, 2018
Solved

OTG_HS usage with STM32H753xI

  • February 22, 2018
  • 1 reply
  • 609 views
Posted on February 22, 2018 at 15:04

Hi,

In-fact I tried asking query through service request. The website portal seems to be very slow. I am not sure whether it got submitted or not.

So I am asking the query directly to you here. Please help me in addressing this query :

Hi,

We are using STM32H753xI in our design and we would like to use OTG_HS interface.

Our plan is to connect the OTG_HS signals (DP, DM, VBUS, ID) to micro USB connector.

The query is CAN WE CONNECT KEYBOARD AND MOUSE to the OTG_HS interface? We may run OS in microcontroller and we will view it through LCD interface. By connecting Keyboard/mouse we want to give inputs to OS. Is it possible to achieve this requirement using OTG_HS interface?

Hope I made my query clear to you. Please respond ASAP.

Regards,

Vijetha

    This topic has been closed for replies.
    Best answer by Amel NASRI
    Posted on February 27, 2018 at 14:15

    Hi

    hn.vijetha

    ‌,

    You have to use the HID class. Some examples are already available in the STM32CubeH7 package and can be used to interface with a mouse or a keyboard.

    Have a look toSTM32Cube_FW_H7\Projects\STM32H743I_EVAL\Applications\USB_Host\HID_Standalone. The file readme.txt describes the example and how to test it.

    You can also build your own project depending on your application's requirement based on STM32CubeMX.

    -Amel

    1 reply

    Amel NASRI
    Amel NASRIBest answer
    ST Technical Moderator
    February 27, 2018
    Posted on February 27, 2018 at 14:15

    Hi

    hn.vijetha

    ‌,

    You have to use the HID class. Some examples are already available in the STM32CubeH7 package and can be used to interface with a mouse or a keyboard.

    Have a look toSTM32Cube_FW_H7\Projects\STM32H743I_EVAL\Applications\USB_Host\HID_Standalone. The file readme.txt describes the example and how to test it.

    You can also build your own project depending on your application's requirement based on STM32CubeMX.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.