daniel-p-carvalho opened a new pull request, #20909: URL: https://github.com/apache/nuttx/pull/20909
## Summary The same70-qmtech:mcuboot-loader target uses 99.7% of its 128 KB flash (about 440 bytes free), so any growth of the image breaks the CI build. Updating MCUboot in nuttx-apps#3894 adds about 370 bytes and fails with: ``` arm-none-eabi-ld: nuttx section `.ramfunc' will not fit in region `flash' arm-none-eabi-ld: region `flash' overflowed by 120 bytes ``` Enable CONFIG_LTO_FULL=y in the defconfig, as already done for same70-xplained:mcuboot-loader (8f3060ed52) and for the stm32g4 configurations (ef87bdfd25, 2c9f91526a). Other ways to save flash, measured one by one (flash used, base 130632 of 131072 bytes): - CONFIG_FS_PROCFS off: -23.9 KB (drops ps, free and similar NSH commands) - CONFIG_SYSTEM_DD off: -4.6 KB - strftime formats off: -1.2 KB - CONFIG_NSH_CMDOPT_HEXDUMP off: -216 bytes Happy to use one of these instead if LTO is not wanted. ## Impact - Is new feature added? NO - Impact on user: NO - Impact on build: YES, flash use of this configuration drops to about 111 KB - Impact on hardware: NO - Impact on documentation: NO - Impact on security: NO - Impact on compatibility: NO ## Testing Build host: Linux x86_64, arm-none-eabi-gcc 15.2. Target: same70-qmtech:mcuboot-loader, built only. I have no board to run the loader, so it was not tested on hardware. - default MCUboot (e36d3c8): 111320 bytes of 131072 - MCUboot of nuttx-apps#3894 (d6267bd): about 113 KB (builds, no overflow) Before: 99.7% used, and the MCUboot update overflows by 120 bytes in CI. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
