Skip to content

boards: Fit verdin-mx8mp:rpmsg and the STM32G431 nsh configurations in their flash - #21729

Merged
xiaoxiang781216 merged 2 commits into
apache:masterfrom
casaroli:verdin-rpmsg-fit-up
Nov 12, 2026
Merged

xiaoxiang781216 merged 2 commits into
apache:masterfrom
casaroli:verdin-rpmsg-fit-up

Conversation

@casaroli

@casaroli casaroli commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

verdin-mx8mp:rpmsg runs 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 the arm-imx group fails:

arm-none-eabi-ld: region `flash' overflowed by 112 bytes

This configuration has CONFIG_LIBC_LOCALE=y from the nsh configuration of the board, where the C++ library uses it. The rpmsg configuration has no C++. Disable it: this saves 352 bytes.

b-g431b-esc1:nsh and nucleo-g431kb:nsh (STM32G431, 128 KB flash) use all but 23 and 51 bytes on master, and the CI build of the arm-stm32l-u-g group does not fit (region 'flash' overflowed by 32 bytes). The second commit disables two more unused NSH commands there, du and uptime, as cb6d987 did for others. This frees about 1.8 KB in each configuration.

Impact

Only these three configurations: verdin-mx8mp:rpmsg has no setlocale() support; b-g431b-esc1:nsh and nucleo-g431kb:nsh have no du and uptime commands. No code change.

Testing

verdin-mx8mp:rpmsg, make, arm-none-eabi-gcc 13.2.Rel1 (the CI version):

Tree flash
6be97c4 (#21609) 131048 B (99.98%)
6088a3d (#21582) overflowed by 56 bytes
e8b03da (#21542) overflowed by 96 bytes
master 88d756a overflowed by 96 bytes
master 88d756a + this PR 130812 B (99.80%)

The CI reports 112 bytes on master with its apps tree.

STM32G431 configurations, same compiler (bytes of the 131072-byte flash):

Tree nucleo-g431kb:nsh b-g431b-esc1:nsh
master f76e63d 131021 131049
master f76e63d + this PR 129289 129321

The CI image is about 100 bytes larger than the local one, so master overflows there. make savedefconfig gives these defconfigs. Not run on the board (no hardware).

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]>
@casaroli
casaroli requested a review from raiden00pl as a code owner November 11, 2026 18:05
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

arduino-mega2560

  • flash: .text +24 B (+0.0%, 67,011 B / 262,144 B, total: 26% used)

esp32-devkitc

  • ROM: .flash.text +8 B (+0.0%, 130,224 B / 4,194,272 B, total: 3% used)
  • irom0_0_seg: .flash.text +8 B (+0.0%, 96,160 B / 3,342,304 B, total: 3% used)

hifive1-revb

  • flash: .text +20 B (+0.0%, 86,488 B / 4,194,304 B, total: 2% used)

mirtoo

  • kseg0_progmem: .text +16 B (+0.0%, 69,152 B / 131,072 B, total: 53% used)

qemu-armv8a

  • Code: .rodata +48 B, .text.file_vopen +12 B, .text.romfs_closedir +80 B, .text.romfs_opendir +12 B, .text.uptime_read -12 B (+0.0%, 364,272 B)

qemu-intel64

  • Code: .text +108 B (+0.0%, 8,696,598 B)
  • Data: .rodata +64 B (+0.1%, 126,809 B)

s698pm-dkit

  • Code: .text +224 B (+0.1%, 391,360 B)

stm32-nucleo-f103rb

  • flash: .text +12 B (+0.0%, 35,376 B / 131,072 B, total: 27% used)

No memory changes detected for:


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

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]>
@casaroli casaroli changed the title boards/verdin-mx8mp: Disable locale support in rpmsg to fit the ITCM boards: Fit verdin-mx8mp:rpmsg and the STM32G431 nsh configurations in their flash Nov 11, 2026
@xiaoxiang781216
xiaoxiang781216 merged commit b118542 into apache:master Nov 12, 2026
38 of 45 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.

3 participants