Skip to content

USB sample not working on STM32L412  #95514

@everedero

Description

@everedero

Describe the bug

Compiling the sample/subsys/usb/testusb sample for an STM32L412 platform on a custom board.
It fails with:

*** Booting Zephyr OS build v4.2.0-2937-gac8d17955223 ***
[00:00:00.000,000] <inf> usbd_init: interface 0 alternate 0
[00:00:00.000,000] <inf> usbd_init:     ep 0x81 mps 0x0040 interface ep-bm 0x00020000
[00:00:00.000,000] <inf> usbd_init:     ep 0x01 mps 0x0040 interface ep-bm 0x00020002
[00:00:00.000,000] <inf> usbd_init: interface 1 alternate 0
[00:00:00.000,000] <inf> usbd_init:     ep 0x82 mps 0x0040 interface ep-bm 0x00040000
[00:00:00.000,000] <inf> usbd_init:     ep 0x02 mps 0x0040 interface ep-bm 0x00040004
[00:00:00.000,000] <inf> usbd_init: interface 2 alternate 0
[00:00:00.000,000] <inf> usbd_init:     ep 0x83 mps 0x0000 interface ep-bm 0x00080000
[00:00:00.000,000] <inf> usbd_init:     ep 0x03 mps 0x0000 interface ep-bm 0x00080008
[00:00:00.000,000] <inf> usbd_init: interface 2 alternate 1
[00:00:00.000,000] <inf> usbd_init:     ep 0x83 mps 0x0100 interface ep-bm 0x00080000
[00:00:00.000,000] <err> usbd_init: Failed to assign endpoint addresses
[00:00:00.000,000] <err> usbd_init: Failed to init FS configuration 1
[00:00:00.000,000] <err> main: Failed to initialize device support
  • It works with Zephyr 3.5, but fails on current 4.2.99 main
  • Some samples are still working (like sample/subsys/usb/midi)

Regression

  • This is a regression.

Steps to reproduce

No response

Relevant log output

Impact

Functional Limitation – Some features not working as expected, but system usable.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: USBUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions