Skip to content

boards/nucleo-l432kc: Disable four NSH file commands in wgen - #21975

Merged
GUIDINGLI merged 1 commit into
apache:masterfrom
casaroli:nucleo-l432kc-wgen-fit-up
Nov 18, 2026
Merged

GUIDINGLI merged 1 commit into
apache:masterfrom
casaroli:nucleo-l432kc-wgen-fit-up

Conversation

@casaroli

Copy link
Copy Markdown
Contributor

Summary

On master aebcf86, nucleo-l432kc:wgen does not link: region `flash' overflowed by 556 bytes (Arm GNU Toolchain 13.2.Rel1). The Linux (arm-stm32l-u-g) job of CI fails with an overflow of 212 to 348 bytes, also for PRs that do not change this configuration (for example #21942, x86_64 code only, overflows by 348 bytes).

This configuration starts the DAC waveform generator (dac_wgen_main). This PR disables the NSH commands cp, mv, rm and truncate, as the earlier fit of this configuration (#21370) did for other unused commands. Then 5784 bytes of flash are free.

Impact

nucleo-l432kc:wgen only. No code change. NSH in this configuration has no cp, mv, rm and truncate commands.

Testing

Make build of nucleo-l432kc:wgen on master aebcf86 with nuttx-apps master 0527829cc, Arm GNU Toolchain 13.2.Rel1 (the CI version):

Tree Result Flash used (text + data) of 262144
master aebcf86 region `flash' overflowed by 556 bytes 262700
this PR links 256360 (5784 free)

CI also builds this configuration with clang (overflow of 212 to 348 bytes there too); the clang build was not run locally. The four commands give about 6.3 KiB with GCC.

make savedefconfig gives the committed defconfig (apart from the host line CONFIG_HOST_MACOS=y). tools/checkpatch.sh -c -u -m -g passes.

On master aebcf86, the link of nucleo-l432kc:wgen fails:
region `flash' overflowed by 556 bytes (Arm GNU Toolchain 13.2.Rel1).
The Linux (arm-stm32l-u-g) job of CI fails with an overflow of 212 to
348 bytes, also for PRs that do not change this configuration.

This configuration starts the DAC waveform generator (dac_wgen_main).
Disable the NSH commands cp, mv, rm and truncate, as the earlier fit of
this configuration did for other unused commands.  Then 5784 bytes of
flash are free.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
@casaroli
casaroli requested a review from acassis as a code owner November 17, 2026 23:48
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: arm labels Nov 18, 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.

This was referenced Nov 18, 2026
@GUIDINGLI
GUIDINGLI merged commit 2868cbd into apache:master Nov 18, 2026
26 checks passed
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.

4 participants