cpu/esp32: place freertos and periph in IRAM #17087
Merged
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
This PR moves the code from
cpu/esp_common/periph
andcpu/esp_common/freertos
from IROM to IRAM.The IRAM is much faster than the IROM. Furthermore, IROM can only be accessed via a cache which is sometimes disabled, e.g. by the WiFi module or when writing to the flash. Therefore, time-critical code as well as code that has to work even when the IROM cache is disabled must be placed in the IRAM.
The PR should increase stability.
Testing procedure
Tests in Murdock should still success.
Additionally, a networking application should be tested.
Issues/PRs references
Found when fixing #16281.