This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e04d798bd98b2432b6e692f4a7ad739ae9c1caf8 Author: Marco Casaroli <[email protected]> AuthorDate: Sun Nov 1 13:22:19 2026 +0100 boards/stm32f3: nucleo-f302r8:ihm07m1_f32: Enable LTO to fit flash. The ihm07m1_f32 (FOC motor control) configuration fills the 64 KiB flash of the STM32F302R8: master leaves 244 bytes free, and the ident of openlog() in the syslog header and the LOG_PERROR output of vsyslog() need 304 bytes more (Arm GNU 13.2). Enable CONFIG_LTO_FULL, as ihm07m1_b16 does since 16df6dc55d2. The image is then 56412 bytes with make and 56387 bytes with CMake. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- boards/arm/stm32f3/nucleo-f302r8/configs/ihm07m1_f32/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/arm/stm32f3/nucleo-f302r8/configs/ihm07m1_f32/defconfig b/boards/arm/stm32f3/nucleo-f302r8/configs/ihm07m1_f32/defconfig index 4f71addaafc..32d41a1fc8d 100644 --- a/boards/arm/stm32f3/nucleo-f302r8/configs/ihm07m1_f32/defconfig +++ b/boards/arm/stm32f3/nucleo-f302r8/configs/ihm07m1_f32/defconfig @@ -55,6 +55,7 @@ CONFIG_INPUT_BUTTONS=y CONFIG_INPUT_BUTTONS_LOWER=y CONFIG_INTELHEX_BINARY=y CONFIG_LIBM=y +CONFIG_LTO_FULL=y CONFIG_MOTOR=y CONFIG_MOTOR_FOC=y CONFIG_MOTOR_FOC_TRACE=y
