cpu/esp32: fix esp_wifi stability problem by placing wdt_hal_* functions in IRAM#21980
Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom Jan 12, 2026
Merged
Conversation
benpicco
approved these changes
Jan 12, 2026
Contributor
Author
|
@benpicco Thanks |
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.
Contribution description
The PR fixes an issue caused by missing entries for
wdt_hal_*functions insections.ldfiles for ESP32-S3, ESP32-C6 and ESP32-H2.wdt_hal_*functions of the IDF have to be placed in IRAM to avoid crashes whenwdt_hal_*functions are used while SPI Flash Cache is disabled. For ESP32-S3, ESP32-C6 and ESP32-H2, these functions were placed in IROM due to missing entries insections.ldfiles. Especially on ESP32-S3, this led to crashes while connecting to a WiFi AP.The issue was found while investigating issue #21923.
Testing procedure
Use any ESP32-S3 board and flash the GNRC networking example with enabled
esp_wifimodule, for exampleWithout this PR, the ESP32-S3 board mostly hangs after reset while connecting to the WiFi AP. With the PR connecting to the WiFi AP should work stable.
Issues/PRs references