Impossible to get USB device and sequencer working together
Hello ST Community,
Let's start with my problem:
I have a STM32WB55CG chip that I want to get working in BLE. I also want it to have an USB CDC interface.
I created a project on cubeMX, added my external oscillator (32MHz), activated the USB device under "connectivity", then the Communication Device Classs under "MiddleWare". I went to generate this project, compile under Keil and program my chip. Connected it to my PC, seems to work, Windows recognizes it as COM3. Note that my project is still blank at this point, I did not write a single line of code.
Then back to CubeMX, I added the Bluetooth part: HSEM in "System Core", RTC in "Timers", RF in "Connectivity", STM32_WPAN in "MiddleWare". That last option added automaticaly "Sequencer" and "Tiny_LPM" in "Utilities" (I would've added them anyway).
Code generation, but this time Keil (my IDE) gives me errors: CubeMX generated some files 2 times in my project, see below.
I get it compiing, and program my chip. This is STILL a blank project: the only lines of code I have in my project are the one generated by CubeMX.
This time the USB does not work: Windows gives me an "unrecognized device" error. Diving in he could not get descriptor.
Do you have any idea how to correct this?
Thanks,
Xavier
---------------------------------
The bug-report part (nothing too serious I think):
On another (hopefully unrelated) note: CubeMX seems to generate projects that does not compile, at least with Keil IDE. The cause of this is because it generates 2 times the files 'dbg_trace.c", "otp.c", "stm_list.c" and "stm32_seq.c", once under the folder "Utilities" and once under the folder "Middlewares/STM32_WPAN".
I also noticed that the frequency of "RFWKP" seems to be incorrect: I have a 32MHz HSE input oscillator, and the GUI of CubeMX says that once it's divided by 32, the freq is... 31.25 kHz? Is it a bug or did I miss something?