Repository navigation
Update esp-idf to fix display stopping when USB is disconnected - #11907
Merged
Merged
Conversation
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
enabled auto-merge
November 18, 2026 19:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 everyesp_timercallback to stop. CircuitPython's tick is anesp_timercallback, 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-idfsubmodule to pick it up.Testing
On a MatrixPortal S3 with no USB host, running a version of the
code.pyfrom #10671, which prints to the display in a loop: