Skip to content

ESP32-P4: PARLIO emits nothing and LCD_RGB capture truncates at 256 edges in AutoResearch loopback #4669

Open

Description

@zackees

Summary

On a live ESP32-P4 with a TX5→RX6 jumper, bash autoresearch esp32p4 --all passes RMT, SPI and UART but fails PARLIO and LCD_RGB.

--all: skipping drivers this firmware does not register: LCD_CLOCKLESS, LCD_SPI, OBJECT_FLED, FLEX_IO
TEST PARLIO  lanes=1 leds=100 FAIL 1083ms class=zero_capture
TEST RMT     lanes=1 leds=100 PASS 1072ms
TEST SPI     lanes=1 leds=100 PASS 2094ms
TEST UART    lanes=1 leds=100 PASS 1053ms
TEST LCD_RGB lanes=1 leds=100 FAIL 1045ms class=decode_mismatch

Board: ESP32-P4 (ECO2 ROM esp32p4-eco2-20240710), USB-Serial-JTAG 303A:1001, ser 80:F1:B2:D1:DF:B1. Pins were auto-discovered and confirmed by the GPIO pre-test, and three other drivers pass on the same pins, so the wiring and RX path are proven.

PARLIO: nothing reaches GPIO5

Captured bytes:   0/300
RX wait/raw:      0/0
Decode status:    ok=0 error=1 bytes=0/96100

RX saw no edges at all. The same driver passes on an ESP32-C6 (TEST PARLIO lanes=1 leds=100 PASS 131ms), so this looks P4-specific: TX GPIO routing or clock source for the P4 PARLIO instance, or the slim-bridge refactor (#4583/#4614, validation deferred in #4612) on P4.

LCD_RGB: correct waveform, but capture stops after 256 edges

Mismatched LEDs:  86/100
Captured bytes:   44/300
RX wait/raw:      0/256
Raw sample:       H625 L625 H625 L625 ... H325 L925 H325 L925 ... H625 L625
1-bit LSB errors: 0/258 mismatched (0.0%)

The captured edges decode cleanly (T0H≈325 ns, T1H≈625 ns, no bit errors), but RX ends at exactly 256 raw edges. RMT/SPI/UART fill all 300 bytes on the same RX, so the RX buffer is not the limit. Likely cause: the LCD_RGB peripheral inserts a blanking/porch gap mid-frame (or splits the frame across DMA descriptors), and RX treats the gap as end-of-frame.

Repro

bash autoresearch esp32p4 --all --upload-port <port> --timeout 240 --skip-lint
# or per driver:
bash autoresearch esp32p4 --parlio --upload-port <port>
bash autoresearch esp32p4 --lcd-rgb --upload-port <port>

With a released fbuild ≤ 2.5.30 the P4 run aborts earlier with session closed. That is FastLED/fbuild#1617: every serial open reset the chip and the P4 re-enumerated. Use an fbuild that contains #1619.

Activity

  1. zackees commented on Oct 2, 2026

    @zackees
    MemberAuthor

    Root-caused both on the P4 bench (80:F1:B2:D1:DF:B1, GPIO5→GPIO6):

    • PARLIO → fix(parlio): keep data pins driven while the TX unit is re-created (#4669) #4677. The engine re-creates the TX unit every frame, and parlio_del_tx_unit() disables output on the data pins for ~350 µs while it tears down. The RX pad's pull-up then raises the line, and RMT RX ends on its 100 µs idle threshold (1 symbol, 0x8000) before the frame starts. Fix: hold the pads across the delete.
    • LCD_RGB → fix(lcd_rgb): fold frames into 12-bit-wide lines; keep RMT RX gap bits (#4669) #4678. lcd_ha_width is 12-bit on S3/P4, so one 9600-px line went out as 9600 mod 4096 = 1408 px, which is the 44 bytes captured. (The 256-edge figure is just the diagnostic snapshot cap.) Fix: fold the frame into ≤4096-px lines, add a 1-px HSYNC front porch (with 0, the P4 never finishes multi-line frames), and stop RMT RX dropping the bit inside a stretched-LOW gap symbol.

    With both PRs on current master, --all passes: PARLIO, RMT, SPI, UART, and LCD_RGB all PASS, and the result is AUTORESEARCH SUCCEEDED.

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