cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F207 customer HID do not work

duan jze
Associate II
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee
Posted on May 08, 2018 at 11:51

Hello

gaobiao315

,

Try to disable VBUS sensing inyour USB configuration.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

7 REPLIES 7
Imen.D
ST Employee
Posted on May 08, 2018 at 11:51

Hello

gaobiao315

,

Try to disable VBUS sensing inyour USB configuration.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
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?

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
duan jze
Associate II
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
Associate II
Posted on May 10, 2018 at 10:29

HI,

DAHMEN.IMEN

I want to implement the combination of keyboard and mouse

Best Regards,

duan

duan jze
Associate II
Posted on May 10, 2018 at 12:03

HI

DAHMEN.IMEN

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

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen