Skip to content

RP PIO engine: honour XTRA0 and add a blocking fallback when no SM/DMA is free (breaks GE8822/GW6205 on RP) #4622

Closed

Description

@zackees

Follow-up to #4589 (PR #4619), part of #4580.

Since #4619, the RP legacy ClocklessController accepts XTRA0 but ignores it. The removed controller emitted the extra zero bits. It also has no fallback when every PIO state machine or DMA channel is already claimed (Adafruit TinyUSB is the common case, #1471). The old controller at least warned and released the pin.

Task: carry XTRA0 through ChannelData/engine encoding. When resources are exhausted, warn clearly and optionally fall back to a blocking bit-bang.

Activity

  1. zackees commented on Sep 25, 2026

    @zackees
    MemberAuthor

    Impact confirmed by review of #4619: GE8822Controller800Khz and GW6205Controller400Khz (src/chipsets.h ~403/408, XTRA0=4) now emit 8-bit bytes on RP, so addLeds/<GW6205_400> on Pico produce wrong data. Also: BusTraitsBus::FLEX_IO,0 only claims PIO0 (claimPioDmaAndPin pio_index=0) — no PIO1/PIO2 fallback and FASTLED_RP2040_CLOCKLESS_M0_FALLBACK is now ignored, so when TinyUSB/PIO-USB holds PIO0 (#1471) legacy strips stay dark with only an engine ERROR state.

  2. changed the title [-]RP PIO engine: honour XTRA0 and add a blocking fallback when no SM/DMA is free[/-] [+]RP PIO engine: honour XTRA0 and add a blocking fallback when no SM/DMA is free (breaks GE8822/GW6205 on RP)[/+] on Sep 25, 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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions