Skip to content

Comments

esp32/uart: sanitize UART state before ISR allocation#3000

Open
addshore wants to merge 1 commit intotoitlang:masterfrom
addshore:adam-v2.0.0-alpha.189-uart-create-scrub
Open

esp32/uart: sanitize UART state before ISR allocation#3000
addshore wants to merge 1 commit intotoitlang:masterfrom
addshore:adam-v2.0.0-alpha.189-uart-create-scrub

Conversation

@addshore
Copy link
Contributor

@addshore addshore commented Feb 24, 2026

Disable UART interrupts, reset FIFOs, and clear pending interrupt status before ISR setup in uart.create to avoid stale-state interrupt storms. Also clear RX FIFO after post-enable settling delay and minimize run() lambda capture to avoid primitive-context allocation issues.

This came up while looking for an actual fix that ended up being #2999
So i'm on the fence around if this would actually be a good idea / needed?

Disable UART interrupts, reset FIFOs, and clear pending interrupt status before ISR setup in uart.create to avoid stale-state interrupt storms. Also clear RX FIFO after post-enable settling delay and minimize run() lambda capture to avoid primitive-context allocation issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant