Skip to main content
vsida.1
Associate
September 11, 2022
Question

Device Descriptor Error for USB HID application on STM32F407 board,tried with heap size increase but not worked.

  • September 11, 2022
  • 4 replies
  • 2408 views

..

This topic has been closed for replies.

4 replies

Pavel A.
Super User
September 11, 2022

Add debug prints (short!) to track the flow of enumeration and host requests.

In line 119, 50 ms delay possibly is not enough, make it 100 ms to be sure.

Later properly handle notifications of TX complete instead of delays.

Tesla DeLorean
Guru
September 11, 2022

Perhaps the issue isn't related to heap size?

You seem to lack the ability to present your problems in a way others might be able to help.

"Not working" isn't particularly enlightening, you'll have to do some debugging. As Pavel suggests you might have to do this via instrumentation as you can't stop a USB device dead in a classic debugger sense as it will appear non-responsive to PCs trying to access it.

What boards are you using? Are other examples working? Provide some context.

Is it appropriate to run the MCU at a fraction of the speed of the USB peripheral?

https://community.st.com/s/question/0D53W00001nZfA5SAK/my-stm32f429z-board-usb-hid-is-not-detected-by-pci-am-totally-new-to-this-usb-please-help-me-out

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
vsida.1
vsida.1Author
Associate
September 12, 2022

The same code i tried on my STM32F407 discovery board. Its working like a charm. Just for getting to know that my flow of execution i added LED in if condition.​I haven't tried another example yet.

vsida.1
vsida.1Author
Associate
September 12, 2022

I have used STM32F429Z Discovery Board.