Skip to main content
Ckerl.2
Associate II
February 22, 2023
Solved

STM32H735G CustomHID code not working "This device cannot start. (Code 10)"

  • February 22, 2023
  • 3 replies
  • 1348 views

I am trying to test a CustomHID from the STMCubeMX code and the project does not seem to work as intended.

When I use the HID Standalone example for the STMH735G Dev Kit the project works as intended however when I try to set it up with the CustomHID windows gives this error. I changed the clocks to match the HID Standalone project with a max clock of 520mhz.

Wondering what I am doing wrong or if there is some setting that needs to be modified for this to work properly. Looks like everything is setup and should work already but doesn't

This topic has been closed for replies.
Best answer by Ckerl.2

I resolved the issue,

the project with the default descriptor does not actually set anything up.

I followed this video for setting up the USB device

https://www.youtube.com/watch?v=3JGRt3BFYrM&ab_channel=STMicroelectronics

3 replies

Technical Moderator
February 22, 2023

Hello @Community member​,

Check the differences in Clock Configuration between the -ready to use- application and your project created with CubeMx.

Have a look at this FAQ: USB device not recognized.

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Ckerl.2
Ckerl.2Author
Associate II
February 23, 2023

Hi Imen,

The clocks are identical to the ready to use application and my application.

I increased the heap size to 0x1000 as suggested and this still did not resolve the issue.

still receive code error 10

0693W00000aHTTjQAO.png 

when attempting the CDC example for AzureRtos

I get this, I dono if this is helpful information to resolving this. 0693W00000aHTSgQAO.png

Ckerl.2
Ckerl.2AuthorBest answer
Associate II
February 23, 2023

I resolved the issue,

the project with the default descriptor does not actually set anything up.

I followed this video for setting up the USB device

https://www.youtube.com/watch?v=3JGRt3BFYrM&ab_channel=STMicroelectronics

Technical Moderator
February 23, 2023

Hi @Community member​ ,

Glad to know the issue has been solved.

Please allow me to close this thread and thank you again for your contribution.

Imen

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