test_prod2u_door_temp_uart_e2e.sync-cause.md 1.3 KB

Real-UART synchronization record

  • Worktree: C:\Users\Administrator\CodexTemp\prod2u-final-convergence-b2a3230e66f74a35bb74ac6730e58bb5
  • Baseline HEAD before this follow-up: 72600bc672522f91bf62047b1cfac065dae131c2
  • Pre-existing uncommitted patch: test_prod2u_door_temp_uart_e2e.pre-sync.diff

Root cause

The motor observer sets completion on the 450th rising edge. At that moment the motor output can still be high. The RTL drives x_step and y_step low on the next 500 us tick, then the controller returns through ST_MOTOR, ST_DRAIN, and ST_IDLE. Until that transition completes, frame_rx does not have accept_enable=1.

The test sent the 6-byte GET frame immediately after observer completion. Its approximately 520.8 us wire duration therefore overlapped the motor drain and was discarded as a complete frame. The I2C/temperature DUT path was separately confirmed to be a read-only calculation path without a deadlock; the existing 100 ms response-byte timeout remains sufficient.

Required test-only synchronization

After motor completion, wait until both real DUT outputs x_step and y_step are low, then wait four additional sys_clk rising edges before sending GET. This synchronizes the test with the existing RTL state transition without changing the UART protocol, timeout, or assertions.