2022-09-11 01:46 AM
2022-09-11 09:16 AM
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.
2022-09-11 10:48 AM
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?
2022-09-11 09:01 PM
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.
2022-09-11 09:02 PM
I have used STM32F429Z Discovery Board.