Skip to content

Increase priority of UART interrupt for ESP32/S2/S3 due to blocking.#60

Merged
brainstorm merged 1 commit into
brainstorm:mainfrom
Autofix:main
Feb 19, 2026
Merged

Increase priority of UART interrupt for ESP32/S2/S3 due to blocking.#60
brainstorm merged 1 commit into
brainstorm:mainfrom
Autofix:main

Conversation

@Autofix

@Autofix Autofix commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

During testing of HSM I found that the ESP32 would be able to send unlimited bytes, but after a single byte was read, it would get blocked in both directions while reading the uart rx buffer.

let n = uart_rx.read_async(&mut uart_rx_buf).await.unwrap();

@projectgus found that esp-rtos runs at Priority 1 so the UART priority must be set higher than that. I tested at Priority 2 but the same block was occurring. Testing at Priority 3 (max) appears to work.

This PR should not affect anything else so can be easily merged.

…riority3 as it was becoming blocked when reading the buffered uart.
@brainstorm brainstorm merged commit 74cd7ea into brainstorm:main Feb 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants