cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX 4.26 - new problems with STM32L4 USB device

gbm
Lead III
Posted on June 11, 2018 at 16:58

I tried to re-create my 4 well-tested USB device demos with 4.26. While HID mouse and MSC work flawlessly, two others do not work:

CDC - COM port shows in device manager but cannot be opened in terminal; same basic code (just a simple echo) works ok with 4.25.1 and 4.24 (broken PLL programming in 4.25).

HID keyboard - no data received.

I noticed that 'custom HID' used for keyboard was heavily changed in 4.26, and the changes ar not good - DataIn callback was removed - bad

:(

.
My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
11 REPLIES 11
Jerome Godbout
Associate II

Just to confirm, 1.11.0 is working fine on my side too. Thanks for th tips. 1.12.0 is breaking everything over here!

Pavel A.
Evangelist III

<quiote> but once in a while (every 8 minutes or so) it send a 5 byte report even if application layer asked for a single bytes (made a runtime assert of this without problem). The faulty packet was observed with a hardware USB tracer.</quote>

Jerome, can you post a piece of the USB trace with this error, please?

And what is your HID device: something shrink wrapped or self-made?

What is its endpoint max. packet size and report size?

I have a similar problem, but with F4. Pondering if this can be caused by Cube or libraries version.

Thanks,

-- pa