Repository navigation
boards/stm32f334-disco: disable uptime in buckboost to fit flash - #21808
Merged
GUIDINGLI merged 1 commit intoNov 13, 2026
Merged
Conversation
stm32f334-disco:buckboost no longer fits the 64 KiB flash on master: with the CI CMake flow the link fails with "region `flash' overflowed". Most of the recent growth comes from mm_initialize_heap() now calling lib_memalign(), which pulls mm_memalign() into this small build. The uptime command is not needed by the buck-boost example. Disabling it removes cmd_uptime and its helpers and saves about 1.9 KiB of flash. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: yangsong8 <[email protected]>
yangsong8-a1
requested review from
Donny9,
GUIDINGLI,
jerpelea and
xiaoxiang781216
as code owners
November 12, 2026 14:08
|
xiaoxiang781216
approved these changes
Nov 13, 2026
GUIDINGLI
approved these changes
Nov 13, 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
stm32f334-disco:buckboost no longer fits the 64 KiB flash on master. The
CI job
Linux (arm-stm32f0-f3)fails for every PR withregion 'flash' overflowed. The board started to overflow with f231a24("mm: replace mm_heap_config_s.heap with an allocheap flag"):
mm_initialize_heap() now calls lib_memalign(), which links mm_memalign()
and memalign() into this build.
Disable the NSH
uptimecommand in this configuration. The buck-boostexample does not need it.
Impact
stm32f334-disco:buckboost only.
uptimeis no longer available in NSH onthis configuration. Other configurations of the board are unchanged.
Testing
Ubuntu 22.04, Arm GNU Toolchain 13.2.Rel1 (the version in the CI docker
image), same CMake flow as tools/testbuild.sh for
stm32f334-disco:buckboost,CONFIG_ARM_TOOLCHAIN_CLANG, nuttx 5d79bf4and nuttx-apps 81eff9fc8:
region 'flash' overflowed by 640 bytesThe local build is 16 B larger than CI for this board in every version
(CI reports an overflow of 360 B where the local build reports 376 B on
the same commit), so the CI margin should be slightly larger.