Skip to content

LPC11Uxx USB: fix OUT endpoint stall and endpoint count - #456

Open
milouk wants to merge 1 commit into
ChibiOS:chibios-21.11.xfrom
milouk:lpc11uxx-usb-fixes
Open

milouk wants to merge 1 commit into
ChibiOS:chibios-21.11.xfrom
milouk:lpc11uxx-usb-fixes

Conversation

@milouk

@milouk milouk commented Oct 13, 2026

Copy link
Copy Markdown

Two fixes in the LPC11Uxx USB driver, found while bringing up an interrupt OUT endpoint (raw HID) on an LPC11U35 keyboard.

  • A finished OUT transfer left the endpoint stalled until the next receive started. Back-to-back OUT packets then failed on the host. The endpoint is now left inactive, so it NAKs.
  • USB_MAX_ENDPOINTS was 5, which counts EP0. The chip has four endpoints besides EP0. A fifth one wrote past epn_buffer and the endpoint list.

Tested on an LPC11U35 running QMK with VIA over raw HID. demos/LPC builds.

A finished OUT transfer left the endpoint stalled until the next receive started. Back-to-back OUT packets then failed on the host. Leave the endpoint inactive so it NAKs.

USB_MAX_ENDPOINTS was 5, which counts EP0. The LPC11Uxx has four endpoints besides EP0. A fifth one wrote past epn_buffer and the endpoint list.
@milouk milouk mentioned this pull request Oct 13, 2026
10 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant