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
LPC845 SCT+DMA clockless: exercise the DMA error path, measure contention with UART-DMA, handle long frames in hub-off builds #5278
Follow-ups that #5275/#5277 (LPC845 SCT+DMA clockless, --pwm-dma-cl) left open:
DMA error path untested on silicon.ERRINT is now cleared and routed to the driver (fix(lpc): DMA hub clears every pending ERRINT; --pwm-dma-cl burst waits for a leftover frame #5277), but the bench never triggers a DMA error. Add a bench case that forces one (for example, a deliberately invalid descriptor) and assert that show() completes or fails cleanly, without hanging or replaying old data.
Contention with a second DMA user. On real timing, the transmitter's write at a chunk reload has little slack. Measure --pwm-dma-cl while UART-DMA (or another DMA0 channel) is busy, and report the T0H/T1H spread at reload bits. If it slips, raise the reload channel's priority or document the limit.
Hub-off builds truncate long frames. With the DMA ISR hub disabled, a frame over two chunks refills from poll() and is cut short if poll() runs less often than once per chunk (120 µs). Measured: 192 of 240 bits, then a clean stop. Either refuse frames over two chunks in hub-off builds with a clear error, or document it in src/platforms/arm/lpc/README.md.
Activity
fix(lpc): address CodeRabbit review on #5278
fix(lpc): SCT+DMA halts at once on a DMA error, hub-off refuses long …