You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ESP32-P4: PARLIO emits nothing and LCD_RGB capture truncates at 256 edges in AutoResearch loopback #4669
--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.
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
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.
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.
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.
Activity
zackees commentedon Oct 2, 2026
Root-caused both on the P4 bench (80:F1:B2:D1:DF:B1, GPIO5→GPIO6):
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_ha_widthis 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,
--allpasses: PARLIO, RMT, SPI, UART, and LCD_RGB all PASS, and the result is AUTORESEARCH SUCCEEDED.fix(parlio): keep data pins driven while the TX unit is re-created (#…
fix(lcd_rgb): fold frames into 12-bit-wide lines; keep RMT RX gap bits (