USB CDC device not being recognised by windows. (STM32WB5M, Bluetooth low energy)
- December 17, 2021
- 8 replies
- 7368 views
Context:
I have succesfully implemented a CDC device in a stm32f205 board 6 months ago.
Now im trying to implement the exact same thing in my STM32WB5M discovery board.
BLE is already activated and working P2P custom server
- Using CUBEMX 6.3.0
- FW package STM32Cube_FW_WB_V1.13.0
______________________________________________________________________
Problem:
Windows doesnt recognise the USB device.
________________________________________________________________
How did i got here:
I enabled the USB device mode in cubeMX
I enabled the middleware
I autogenerate the code....
Inside usb_cdc_if.c i add this code

everything compiles and runs but windows doesnt recognice the USB device
Find attached my cubeMX file.
The Windows doesnt recognice error appears when the usb is enabled (i dont know if this means anything )
The usb handle struc doesnt show any errors after init

