Skip to content

Update esp-idf to fix display stopping when USB is disconnected - #11907

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:update-esp-idf-lost-wakeup
Nov 18, 2026
Merged

dhalbert merged 1 commit into
adafruit:mainfrom
dhalbert:update-esp-idf-lost-wakeup

Conversation

@dhalbert

Copy link
Copy Markdown
Collaborator

Diagnosis, fix and test case by Claude, with review and testing by @dhalbert.

Problem

On ESP32-S3, esp_ipc_call() could wait forever when the target core was in a flash operation. This caused every esp_timer callback to stop. CircuitPython's tick is an esp_timer callback, so the display stopped refreshing. A connected USB host hid the problem, because USB activity makes the stuck core reschedule.

The upstream issue is espressif/esp-idf#19456, which has the details and a reproducer.

Fix

I already cherry-picked the fix from espressif/esp-idf#19457 to our fork of esp-idf in adafruit/esp-idf#24, which was merged. This PR updates the esp-idf submodule to pick it up.

Testing

On a MatrixPortal S3 with no USB host, running a version of the code.py from #10671, which prints to the display in a loop:

Display stopped
Without the fix After 9 to 43 s, in every run
With this PR Never, in runs of 25 and 48 minutes

Picks up adafruit/esp-idf#24, a cherry-pick of espressif/esp-idf#19457.
On ESP32-S3, esp_ipc_call() could wait forever when the target core was
in a flash operation, which stopped every esp_timer callback, including
the CircuitPython tick. A connected USB host hid the problem.

Fixes adafruit#10671.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhalbert
dhalbert requested a review from a team November 18, 2026 19:56
@dhalbert
dhalbert enabled auto-merge November 18, 2026 19:56

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dhalbert
dhalbert merged commit c6d74c1 into adafruit:main Nov 18, 2026
289 of 290 checks passed
@dhalbert
dhalbert deleted the update-esp-idf-lost-wakeup branch November 18, 2026 21:23
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.

rgbmatrix stops updating display if USB is disconnected from computer

2 participants