cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB USB VCP Driver not working?

Deepak.Aagri
Associate III

Hello ST,

I am using STM32WB Necleo Board to test USB as VCP. my reference project is BLE_MeshLightingLPN (USB Dongle) project and same way i am implementing all libraries and modification in BLE_MeshProvsion...
_legacyfs_online_stmicro_images_0693W00000bjCSjQAM.png
_legacyfs_online_stmicro_images_0693W00000bjCStQAM.png
_legacyfs_online_stmicro_images_0693W00000bjCTXQA2.png 

CFG_USB_INTERFACE_ENABLE 1

A new VCP port appeared in Device manager with error

Did i missed anything or it need more modification to use USB as output trace....

Best Regards

Deepak

1 REPLY 1
Remy ISSALYS
ST Employee

Hello,

When you call VCP_Init function, a null pointer is give as second parameter, instead this null pointer, give a rx buffer in parameter like this:

VCP_Init( &VcpTxBuffer[0], &VcpRxBuffer[0] );

And add:

static uint8_t VcpRxBuffer[MAX_DBG_TRACE_MSG_SIZE];

It will be corrected in the next release STM32CubeWB v1.17.0.

Best Regards