Skip to content

LPC845 SCT+DMA clockless: exercise the DMA error path, measure contention with UART-DMA, handle long frames in hub-off builds #5278

Closed

Description

@zackees

Follow-ups that #5275/#5277 (LPC845 SCT+DMA clockless, --pwm-dma-cl) left open:

  1. DMA error path untested on silicon. ERRINT is now cleared and routed to the driver (fix(lpc): DMA hub clears every pending ERRINT; --pwm-dma-cl burst waits for a leftover frame #5277), but the bench never triggers a DMA error. Add a bench case that forces one (for example, a deliberately invalid descriptor) and assert that show() completes or fails cleanly, without hanging or replaying old data.
  2. Contention with a second DMA user. On real timing, the transmitter's write at a chunk reload has little slack. Measure --pwm-dma-cl while UART-DMA (or another DMA0 channel) is busy, and report the T0H/T1H spread at reload bits. If it slips, raise the reload channel's priority or document the limit.
  3. Hub-off builds truncate long frames. With the DMA ISR hub disabled, a frame over two chunks refills from poll() and is cut short if poll() runs less often than once per chunk (120 µs). Measured: 192 of 240 bits, then a clean stop. Either refuse frames over two chunks in hub-off builds with a clear error, or document it in src/platforms/arm/lpc/README.md.

Refs #5265, #5268.

Activity

  1. added
    sanitized
    on Nov 18, 2026
  2. moved this from Triage to Done in FastLED Trackeron Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions