cpu/esp*: fixes for tests/pkg_spiffs and tests/pkg_littlefs #12890
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 fixes the problem with
tests/pkg_spiffs
that occurred in #11449 after merging PR #12810.SPI flash write operations require to disable the cache for the program code in SPI flash memory. Therefore, the program code required during SPI flash write operations has to be placed in IRAM. With this PR, the code of
pkg_spiffs
andvfs
is therefore placed in IRAM by the linker script.Furthermore, this PR reduces the configured test timeout for
tests/pkg_spiffs
andtests/pkg_littlefs
to avoid that murdock times out before these tests time out. The configured timeout is now 200 seconds which should be enough. An ESP32 needs an average of 60 seconds for these tests, while an ESP8266 needs in average 100 seconds.Testing procedure
Flash and test
tests/pkg_spiffs
with and without this PR.The test should crash or timeout without this PR and should work as expected with the PR.
Issues/PRs references
Solves the problem with
tests/pkg_spiffs
in #11449.