STM32CubeMX 6.0.0 STM32Cube FW_L4 V1.16.0 Bug report
USB CDC is not properly recognized by Windows 10.
How to recover :
\Inc\usbd_conf.h
Source code change
/** Alias for memory allocation. */
//#define USBD_malloc malloc
#define USBD_malloc (USBD_CDC_HandleTypeDef *) USBD_static_malloc
/** Alias for memory release. */
//#define USBD_free free
#define USBD_free USBD_static_free
Source code addition
/* Exported functions -------------------------------------------------------*/
void *USBD_static_malloc(uint32_t size);
void USBD_static_free(void *p);