Skip to main content
ignasi
Associate II
December 8, 2017
Solved

Unknown USB device not recognized (Device Descriptor Failure)

  • December 8, 2017
  • 4 replies
  • 2842 views
Posted on December 08, 2017 at 12:46

Hi,

I have generated a project from Cubemx with Stm32f405,  I want to use a CDC with my computer, with USB device mode

The board is tested with a previous firmware, and usb is recognized, so there is no a hardware problem.

When I try to use the project generated by CubeMx the usb is not recognized.USB device not recognized (Device Descriptor Failure)

Any idea?

Thank you in Advance

#usb-device
This topic has been closed for replies.
Best answer by ignasi
Posted on December 14, 2017 at 12:39

Finally, it was a problem of Clock misconfiguration.

Thanks to all that you took some time on the problem!

4 replies

ST Technical Moderator
December 8, 2017
Posted on December 08, 2017 at 13:03

Hello,

Please try to increase heap and stack sizes.

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
ignasi
ignasiAuthor
Associate II
December 8, 2017
Posted on December 08, 2017 at 13:27

Hi Imen,

Thanks for your answer. I have a stm32f405zgt6 microcontroller

Which values would be max but still ok for this microcontroller?

Now

stack  and heap are like 0x2000 and it doesn't change anything.

Thank you very much

Best Regards

ignasi
ignasiAuthorBest answer
Associate II
December 14, 2017
Posted on December 14, 2017 at 12:39

Finally, it was a problem of Clock misconfiguration.

Thanks to all that you took some time on the problem!