arch/arm/stm32: set F412 SRAM1_END to 256KiB - #20039
Merged
Merged
Conversation
The F412 has 256KiB of system SRAM at 0x20000000 and no CCM. The F2/F4 heap map had no F412 entry, so it used the 128KiB default at 0x20020000 and left the upper half unused. Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
dakejahl
requested review from
hartmannathan,
jerpelea and
raiden00pl
as code owners
September 1, 2026 20:26
This was referenced Sep 1, 2026
xiaoxiang781216
approved these changes
Sep 2, 2026
simbit18
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The STM32F412 has 256 KiB of system SRAM at
0x20000000and no CCM. The F2/F4 heap map never named it, soSRAM1_ENDfell through to the 128 KiB default at0x20020000and the upper half was left out of the heap.Impact
Testing
nxstyleclean onarch/arm/src/common/stm32/stm32_allocateheap_m3m4_v1.c. PX4 carry is PX4/NuttX (10.3) and a matching 12.12 backport; those rebuildark_can-flow-mr_canbootloader/ark_cannode_canbootloaderwithCONFIG_ARCH_CHIP_STM32F412VG/CG.