cancel
Showing results for 
Search instead for 
Did you mean: 

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

vsida.1
Associate II
 
4 REPLIES 4
Pavel A.
Evangelist III

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
vsida.1
Associate II

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
Associate II

I have used STM32F429Z Discovery Board.