Skip to content

STM32U5: cdc-acm example works in full-speed mode instead of high-speed #91222

@Delsian

Description

@Delsian

Describe the bug

When cdc-acm example is compiled for Nucleo-U5A5ZJ-Q, everything works fine except USB speed.
Host reports full-speed mode:

[68252.615459] usb 3-1: new full-speed USB device number 10 using xhci-hcd
[68252.768908] usb 3-1: config 1 interface 1 altsetting 0 endpoint 0x82 has invalid maxpacket 512, setting to 64
[68252.768917] usb 3-1: config 1 interface 1 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64
[68252.784905] usb 3-1: New USB device found, idVendor=2fe3, idProduct=0001, bcdDevice= 4.01
[68252.784912] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[68252.784917] usb 3-1: Product: Zephyr CDC ACM sample
[68252.784921] usb 3-1: Manufacturer: ZEPHYR
[68252.784924] usb 3-1: SerialNumber: 4231500200250007

The board itself contains High-speed USB. Compiling cdc-acm example from the TinyUSB project on the same setup shows High-speed connection:

[68355.821889] usb 3-1: USB disconnect, device number 10
[68356.607700] usb 3-1: new high-speed USB device number 11 using xhci-hcd
[68356.747168] usb 3-1: New USB device found, idVendor=cafe, idProduct=4003, bcdDevice= 1.00
[68356.747176] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[68356.747181] usb 3-1: Product: TinyUSB Device
[68356.747184] usb 3-1: Manufacturer: TinyUSB
[68356.747188] usb 3-1: SerialNumber: 070025000250314241343920
[68356.811360] cdc_acm 3-1:1.0: ttyACM0: USB ACM device

Regression

  • This is a regression.

Steps to reproduce

Steps to reproduce:

west build -b nucleo_u5a5zj_q .\zephyr\samples\subsys\usb\cdc_acm\
west flash

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • OS: Windows, Linux
  • Toolchain: Zephyr
  • Branch: main (hash: ed7f2e0)

Additional Context

Probably it relates to closed PR #80028

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions