2021-12-17 03:52 AM
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
______________________________________________________________________
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
2022-12-15 12:13 PM
I'm having the same symptom.
I am using a board where the USB hardware interface works fine when I run other firmware.
I started with the .ioc file from the P2PServer and used CubeMX to generate my own project. With the help of some code from the p2pserver project, the project works fine without USB enabled, and I was able to modify it to enable it to work with FUOTA. I used CubeMX to enable the USB full-speed device, set the heap size to 0x2000, changed the GPIO speed to very fast, changed app_conf.h to the following:
#define CFG_USB_INTERFACE_ENABLE 1
and still I get the same problem where computer I plug the USB into says there's a problem with the device. I have tried disabling low power mode with no success, and I also updated the clock configuration to better match my working USB example:
@Khouloud OTHMAN @Remi QUINTIN Are there any known examples of USB working alongside USB? I just received the first small production run of a new product I'm making where I was counting on using the USB device along with BLE.
2022-12-16 03:07 AM
As i said 1yr ago:
My design allowed me to replace USB for UART communications.>I dont think im comming back to face this USB+BLE issue anytime soon.
And i very didnt, i still suspect the "Sequencer" used with the BLE API is the reason USB doesnt work.
Maybe they changed something since STM32Cube_FW_WB_V1.13.0 ? maybe not
Good luck @Adrian Adamson
2023-07-17 11:49 PM
Im still waiting for the developers to address this problem. I hope this get fixed soon.
2023-11-08 11:50 PM
Hello, I had same problem with STM32WB5M module on our custom project and also gave up on fixing USB sequencer bug, due to limited time resources and just switched to USART1 and added an ftdi serial to usb converter.