STM32L496 Virtual COM "USB device not recognised"
I'm using an STM32L496 on a custom board and using USB CDC configured through CubeMX (STM32Cube FW_L4 V1.14.0). This connects to a Windows 10 laptop. Randomly I get "USB device not recognised". I can go days without the issue and then it suddenly appears and will fail 20+ times in a row and then be OK once or twice and then fail again. When it fails, Device Manager shows "A request for the USB BOS descriptor failed".
I've increased the heap size as per https://community.st.com/s/article/FAQ-USB-device-not-recognized but still get the issue. My usbd_conf.h has the line "#define USBD_malloc (uint32_t *)USBD_static_malloc" so I believe I'm using static allocation.
Grateful for any help.
