Repository navigation
boards/arm/stm32l4: shrink flash for nucleo-l432kc:wgen - #21370
Merged
jerpelea merged 1 commit intoNov 3, 2026
Merged
Conversation
|
xiaoxiang781216
previously approved these changes
Nov 2, 2026
Contributor
|
@Swatantra-66 please fix: |
The nucleo-l432kc:wgen configuration builds both DAC waveform generator drivers and testing/ostest, and operates near flash capacity (256 KiB). Expanding ostest with new tests (e.g. pthread_sigqueue) causes this configuration to overflow flash by 408 bytes during CI builds (Linux arm-stm32l-u-g). Free flash headroom using existing options: - Disable unused C++ runtime support (CONFIG_HAVE_CXX, CONFIG_HAVE_CXXINITIALIZE). - Disable unused NSH commands (basename, cmp, df, dirname, hexdump, losetup, mkdir, mkrd, mount, rmdir, time, umount, wget, xd). This frees over 5 KiB of flash space, providing ample headroom for future testing and libc expansion. Signed-off-by: Swatantra Yadav <[email protected]> Assisted-by: Google Gemini
Swatantra-66
force-pushed
the
boards/stm32l4-shrink-wgen-flash
branch
from
November 2, 2026 15:40
7a4f11e to
de82ee8
Compare
xiaoxiang781216
approved these changes
Nov 2, 2026
jerpelea
approved these changes
Nov 3, 2026
This was referenced Nov 3, 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
nucleo-l432kc:wgenconfiguration builds both DAC waveform generator drivers andtesting/ostest, operating near the 256 KiB flash capacity. Expandingostestwith unit tests (e.g.pthread_sigqueuein apache/nuttx-apps#3931) causes this configuration to overflow flash by 408 bytes during CI (Linux (arm-stm32l-u-g)).Following the pattern used in #21219 (commit cb6d987) for the STM32G4 boards, this patch frees flash headroom by:
CONFIG_HAVE_CXX,CONFIG_HAVE_CXXINITIALIZE)basename,cmp,df,dirname,hexdump,losetup,mkdir,mkrd,mount,rmdir,time,umount,wget,xd)This frees over 5 KiB of flash space, leaving comfortable headroom for future tests.
Impact
arm-none-eabi-ld: region 'flash' overflowed by 408 bytesonnucleo-l432kc:wgenand restores green CI forLinux (arm-stm32l-u-g).Testing