stm32: test: drivers: memc: ram: fix a specific SRAM memory overflow issue during the build process #96730
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.



This commit 23ebd62 adds changes to update the buffer size to the full PSRAM size when the PSRAM node is available.
Now, on a board like stm32h7s78_dk, where both internal and external flash nodes are enabled, the test runs into SRAM overflow with the following errors: ...
To run tests successfully, mutual exclusion between SRAM and PSRAM needs to be implemented, so the correct buffer size is chosen for the correct peripheral.
To reproduce :
west build -p -b stm32h7s78_dk/stm32h7s7xx tests/drivers/memc/ram -T drivers.memc