Skip to main content
duan jze
Associate
May 8, 2018
Solved

STM32F207 customer HID do not work

  • May 8, 2018
  • 7 replies
  • 1990 views
Posted on May 08, 2018 at 07:31

Hi,

I'm testing the demo on your website designed by itself.

STM32Cube_FW_F2_V1.7.0\Projects\STM322xG_EVAL\Applications\USB_Device\CustomHID_Standalone,

After the target code is downloaded to the board, the device manager displays as shown in the attachment.

it is mean that

Unknown usb device.

    This topic has been closed for replies.
    Best answer by Imen.D
    Posted on May 08, 2018 at 11:51

    Hello

    gaobiao315

    ,

    Try to disable VBUS sensing inyour USB configuration.

    Best Regards,

    Imen

    7 replies

    Imen.DBest answer
    ST Technical Moderator
    May 8, 2018
    Posted on May 08, 2018 at 11:51

    Hello

    gaobiao315

    ,

    Try to disable VBUS sensing inyour USB configuration.

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    duan jze
    duan jzeAuthor
    Associate
    May 9, 2018
    Posted on May 09, 2018 at 03:33

    hi,Imen D,

     hpcd.Instance = USB_OTG_FS;

      hpcd.Init.dev_endpoints = 8;

      hpcd.Init.speed = PCD_SPEED_FULL;

      hpcd.Init.ep0_mps = DEP0CTL_MPS_8;

      hpcd.Init.low_power_enable = DISABLE;

      hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;

      hpcd.Init.Sof_enable = 0;

      hpcd.Init.vbus_sensing_enable = DISABLE;

    in my usb configuration.

    D+ and D- are connected to the chip pin by external resistance?

    ST Technical Moderator
    May 9, 2018
    Posted on May 09, 2018 at 18:40

    Hi

    gaobiao315

    ,

    Please have a look to the relatedreference manual and this FAQ, this may help you to manage VBUS sensing:

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    duan jze
    duan jzeAuthor
    Associate
    May 10, 2018
    Posted on May 10, 2018 at 10:04

    HI,

    DAHMEN.IMEN

    My problem has been solved

    The problem is that peripheral crystal configuration error.

    Do you have an example of a STM32F207 chip as a

    composite device?

    Best Regards,

    Duanjze

    duan jze
    duan jzeAuthor
    Associate
    May 10, 2018
    Posted on May 10, 2018 at 10:29

    HI,

    DAHMEN.IMEN

    I want to implement the combination of keyboard and mouse

    Best Regards,

    duan

    ST Technical Moderator
    May 10, 2018
    Posted on May 10, 2018 at 11:26

    Hi

    gaobiao315

    ,

    There is only the available exampleswithin STM32CubeF2 firmware package.

    You may get help and find users examples from other threads in the forum that discuss the same subject.

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    duan jze
    duan jzeAuthor
    Associate
    May 10, 2018
    Posted on May 10, 2018 at 12:03

    HI

    DAHMEN.IMEN

    Thank you very much for your help. The problems have been solved.