Repository navigation
Description
--chipset ucs7604 fails on the RP2350 PIO loopback path at every LED count, from 1 upward. It is not a capacity or timing failure: capture succeeds and the decoder reports success. The captured bytes are then compared against an expectation that does not match the encoding.
Fails at every length
UCS7604 leds= 1 passed=False bytes=12
UCS7604 leds= 2 passed=False bytes=24
UCS7604 leds= 5 passed=False bytes=60
UCS7604 leds= 10 passed=False bytes=120
UCS7604 leds= 25 passed=False bytes=300
UCS7604 leds= 90 passed=False bytes=1080
Captured bytes scale correctly (12/LED) and are non-zero throughout, so the capture path is working. For contrast, the capacity ceiling documented in #4371 produces bytes: 0.
Decode succeeds; the comparison disagrees
{"decodeOk": 1,
"errors": [{"led": 0, "actual": [240,0,0], "expected": [255,0,0]},
{"led": 1, "actual": [ 15,0,0], "expected": [255,0,0]},
{"led": 2, "actual": [170,0,0], "expected": [255,0,0]},
{"led": 3, "actual": [240,0,0], "expected": [255,0,0]},
{"led": 4, "actual": [ 15,0,0], "expected": [255,0,0]}]}decodeOk: 1 — the decoder is satisfied. Two things stand out in actual:
- the first bytes cycle 240, 15, 170, 240, 15 — that is
MSB_LSB_A's three-byte pattern (0xF0, 0x0F, 0xAA) appearing one byte per LED instead of three - the remaining two channels are zero for every LED
That is the shape you get from reading a 16-bit-per-channel stream with 8-bit-per-channel striding: the real data is twice as long, so each LED slot picks up one byte of the pattern and the rest lands outside the window.
--chipset ucs7604's help text notes it "uses UCS7604-800KHZ timing with 16-bit encoding", so the encoding is intended; the capture/compare path appears not to account for it.
I am describing the shape rather than asserting the mechanism — whether the fault is in the expectation ([255,0,0] repeated, which is not the MSB_LSB_A pattern either) or in the de-interleaving needs someone who owns that comparison.
Why it matters
Anyone testing this chipset sees a failure that looks like a driver or wiring fault. It took separating two things to see otherwise: bytes: 0 versus bytes > 0 distinguishes a capacity failure from this, and decodeOk: 1 rules out the decoder. I nearly recorded its failure at 98 LEDs as a data point for #4371's capacity ceiling before noticing it fails at 1 LED too.
Reproducing
No rebuild needed — drive runSingleTest directly against already-flashed firmware:
{"driver": "PIO0", "laneSizes": [4], "pattern": "MSB_LSB_A",
"iterations": 1, "timing": "UCS7604-800KHZ"}Environment: RP2350W 2DCB876B587EA334, PIO0, GPIO0 -> GPIO1 bridge, master. The same board passes WS2812B-V5, WS2818 and WS2814 at up to 100 LEDs.
Found while measuring #4371. Related: #4371 (capacity cap), #3899 (RP2350 HIL matrix).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(autoresearch): carry the encoder into the channel so UCS7604 test…
fix(autoresearch): bound RP PIO lane sizes by what the capture can ac…
fix(autoresearch): bound RP PIO lane sizes by what the capture can ac…