Repository navigation
boards: Fit verdin-mx8mp:rpmsg and the STM32G431 nsh configurations in their flash - #21729
Merged
Merged
Conversation
verdin-mx8mp:rpmsg runs from the 128 KB ITCM. After apache#21582 and apache#21542 the image does not fit (CI): arm-none-eabi-ld: region `flash' overflowed by 112 bytes The rpmsg configuration has CONFIG_LIBC_LOCALE from the nsh configuration of the board, where the C++ library needs it. The rpmsg configuration has no C++ and nothing in it uses locale support. Disable it: this saves 352 bytes. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
xiaoxiang781216
previously approved these changes
Nov 11, 2026
This was referenced Nov 11, 2026
This was referenced Nov 11, 2026
|
b-g431b-esc1:nsh and nucleo-g431kb:nsh use all but 23 and 51 bytes of the 128 KB flash on master, and the CI build does not fit: ld: region `flash' overflowed by 32 bytes Disable two more unused NSH commands, du and uptime, as cb6d987 did for others. This frees about 1.8 KB in each configuration. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
acassis
approved these changes
Nov 11, 2026
This was referenced Nov 11, 2026
Merged
xiaoxiang781216
approved these changes
Nov 12, 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
verdin-mx8mp:rpmsgruns from the 128 KB ITCM. Since #21582 and #21542 (both merged on 2026-11-11, after #21609 trimmed this configuration) master does not link it, and every CI run of thearm-imxgroup fails:This configuration has
CONFIG_LIBC_LOCALE=yfrom thenshconfiguration of the board, where the C++ library uses it. Therpmsgconfiguration has no C++. Disable it: this saves 352 bytes.b-g431b-esc1:nshandnucleo-g431kb:nsh(STM32G431, 128 KB flash) use all but 23 and 51 bytes on master, and the CI build of thearm-stm32l-u-ggroup does not fit (region 'flash' overflowed by 32 bytes). The second commit disables two more unused NSH commands there,duanduptime, as cb6d987 did for others. This frees about 1.8 KB in each configuration.Impact
Only these three configurations:
verdin-mx8mp:rpmsghas nosetlocale()support;b-g431b-esc1:nshandnucleo-g431kb:nshhave noduanduptimecommands. No code change.Testing
verdin-mx8mp:rpmsg, make, arm-none-eabi-gcc 13.2.Rel1 (the CI version):The CI reports 112 bytes on master with its apps tree.
STM32G431 configurations, same compiler (bytes of the 131072-byte flash):
nucleo-g431kb:nshb-g431b-esc1:nshThe CI image is about 100 bytes larger than the local one, so master overflows there.
make savedefconfiggives these defconfigs. Not run on the board (no hardware).