This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 7c8f97a0d59067cf3135245c6553a71076bab546 Author: Xiang Xiao <[email protected]> AuthorDate: Mon Nov 16 01:36:03 2026 +0800 boards/arm/stm32l4: Reduce knsh timer preallocation The protected kernel region is limited to 8 KiB, and the knsh image exceeds it by 96 bytes. Reduce the preallocated POSIX timer pool by two entries to save 160 bytes; timer_create() allocates additional timers from the kernel heap when the pool is empty. Signed-off-by: Xiang Xiao <[email protected]> Co-authored-by: Copilot <[email protected]> --- boards/arm/stm32l4/stm32l476vg-disco/configs/knsh/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/stm32l4/stm32l476vg-disco/configs/knsh/defconfig b/boards/arm/stm32l4/stm32l476vg-disco/configs/knsh/defconfig index 8e0327c7228..06e94371eba 100644 --- a/boards/arm/stm32l4/stm32l476vg-disco/configs/knsh/defconfig +++ b/boards/arm/stm32l4/stm32l476vg-disco/configs/knsh/defconfig @@ -41,7 +41,7 @@ CONFIG_NSH_FILEIOSIZE=512 CONFIG_NSH_READLINE=y CONFIG_NUTTX_USERSPACE=0x08020000 CONFIG_PASS1_BUILDIR="boards/arm/stm32l4/stm32l476vg-disco/kernel" -CONFIG_PREALLOC_TIMERS=4 +CONFIG_PREALLOC_TIMERS=2 CONFIG_RAM_SIZE=98304 CONFIG_RAM_START=0x20000000 CONFIG_RAW_BINARY=y
