2021-09-25 3:39 PM
I have a blackpill board with STM32F411 48 pins IC and CubeMX/CubeIDE at lastest versions. The USB is configured as device CDC, no Vbus.
When I flash the board with generated code and plug USB in Windows 10 I get an error "invalid device descriptor". I have increased heap to 0x1000 without success.
It not seems a hardware issue because I can enter the board in DFU and flash or erase device using CubeProgrammer.
Any help will be apreciated.
Leonardo
Solved! Go to Solution.
2021-09-26 5:06 AM
I found the solution, I have to increase the heap (0x1000), but this isn't enough to solve. I need to change the automatic clock configs of CubeMX that use internal 16MHz clock as source to core.
The image bellow show the way that works.
2021-09-25 5:49 PM
> It not seems a hardware issue
Then there's an invalid device descriptor. Check with a bus analyzer.
2021-09-26 4:40 AM
But the automatic code generated by CubeMX isn't reliable?
2021-09-26 5:06 AM
I found the solution, I have to increase the heap (0x1000), but this isn't enough to solve. I need to change the automatic clock configs of CubeMX that use internal 16MHz clock as source to core.
The image bellow show the way that works.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.