-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect memory sizes tracking issue #301
Comments
STM32WB55VG ram generates 128kb but has 192kb. |
STM32G030C8 flash generates 32kb but has 64kb |
stm32g491re memory.x shows 32kb RAM, chip should have 112kb (3 blocks of 80, 16, 16) |
|
markdown if need
|
|
|
64 K less since DTCM starting at 0x20000000 is not used, and RAM starts at 0x20010000. |
Opposite issue to the one above: |
STM32F746ZG variant presents the same issue as the STM32F756 variant described before in this thread.
64K less because DTCM should not be counted. RAM starts at 0x20010000 not at 0x20000000. Consider separating SRAM1 (240K) and SRAM2 (16K). |
First step towards fixing #301 The cubeprogdb has turned out to be a quite bad data source. It's not granular enough (it has one entry per chip die, not per chip) so the previous code joined the data with the C headers and cubedb to fill in the gaps, essentialy "guessing" stuff. This has been quite error prone (see #301) and hard to make fixes to. Instead, we're going to manually maintain memory maps in a .rs file. This way, if something is wrong we can simply go and fix it. This commit just migrates the existing data, even if it's wrong. (it does fix a few very minor mistakes). Next steps is actually fixing the memory maps.
First step towards fixing #301 The cubeprogdb has turned out to be a quite bad data source. It's not granular enough (it has one entry per chip die, not per chip) so the previous code joined the data with the C headers and cubedb to fill in the gaps, essentialy "guessing" stuff. This has been quite error prone (see #301) and hard to make fixes to. Instead, we're going to manually maintain memory maps in a .rs file. This way, if something is wrong we can simply go and fix it. This commit just migrates the existing data, even if it's wrong. (it does fix a few very minor mistakes). Next steps is actually fixing the memory maps.
3eab5e1 fixes all issues reported here and more. I believe all stm32 memory maps are correct now. If you find a new mistake, please open a new issue. |
If you've got a chip where the
stm32-metapac/memory.x
feature generates a wrong memory.x please post here.Identified cases:
The text was updated successfully, but these errors were encountered: