The default value of Heap and Stack in STM32CubeMX is 0x200 bytes Heap and 0x400 bytes Stack.
Which is work fine in most situation.
BUT the middleware of USBStack use malloc! for TX and RX buffer!!!
That will make the USB enumerate process fail (some yellow exclamation point).
At that time, system still recognize that device, so I can’t get the point, waste much time to debug and tracing.
It is better to increase this automatically when user enable USB stack?
After change heap to 0x800, everything fine.