Fix: Declare correct RAM sizes for STM32F7 #2075
Open
+15
−3
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.
Detailed description
As I've tried to inspect/debug a project on a board involving STM32F722, the RTT Auto Search feature (which is supposed to be plug&play without configuration) started scrubbing available RAM but fell off the 192 KiB cliff trying to scan all 384 KiB of AHB SRAM which should be present on STM32F777. Confirmed with
blackpill-f411ce
and BMDA. I know aboutmon rtt mem
ranges but this sounds more like a workaround rather than fix, BMD should provide knowledge of DUT flash and RAM maps and sizes.Note this was not rigorously tested with a real project yet. I don't like the seven function calls, this can be further reduced to three via stack locals, should be cheaper than a full LUT. Update: reduced, was +80, now is +48 bytes size-diff.
Tested on STM32F722RE to no longer generate "SWD access resulted in fault" messages during reads outside RAM bounds, and to create a smaller correct RAM map.
Your checklist for this pull request
Closing issues
Fixes #2006.