Skip to content

boards/stm32f334-disco: disable uptime in buckboost to fit flash - #21808

Merged
GUIDINGLI merged 1 commit into
apache:masterfrom
yangsong8-a1:boards-stm32f334-buckboost-flash
Nov 13, 2026
Merged

GUIDINGLI merged 1 commit into
apache:masterfrom
yangsong8-a1:boards-stm32f334-buckboost-flash

Conversation

@yangsong8-a1

Copy link
Copy Markdown
Contributor

Summary

stm32f334-disco:buckboost no longer fits the 64 KiB flash on master. The
CI job Linux (arm-stm32f0-f3) fails for every PR with
region '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 uptime command in this configuration. The buck-boost
example does not need it.

Impact

stm32f334-disco:buckboost only. uptime is no longer available in NSH on
this 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 5d79bf4
and nuttx-apps 81eff9fc8:

flash (64 KiB) sram (12 KiB) Result
master 66176 B (100.98%) 5024 B region 'flash' overflowed by 640 bytes
This PR 64276 B (98.08%) 4976 B links, 1260 B free
Difference -1900 B -48 B

The 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.

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]>
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: arm labels Nov 12, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@GUIDINGLI
GUIDINGLI merged commit 2054326 into apache:master Nov 13, 2026
26 checks passed
@yangsong8-a1
yangsong8-a1 deleted the boards-stm32f334-buckboost-flash branch November 19, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants