From 4c8bf4069fc2062be356c75d1e3597c043bdcc07 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 13 Oct 2025 12:11:49 -0700 Subject: [PATCH] Fix for "benchmark" command to support float with nano.specs. Increase test-app heap size. --- test-app/ARM-stm32h5-ns.ld | 2 +- test-app/ARM-stm32h5.ld | 2 +- test-app/Makefile | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test-app/ARM-stm32h5-ns.ld b/test-app/ARM-stm32h5-ns.ld index b8d71337..73551437 100644 --- a/test-app/ARM-stm32h5-ns.ld +++ b/test-app/ARM-stm32h5-ns.ld @@ -50,5 +50,5 @@ SECTIONS } PROVIDE(_start_heap = _end); -PROVIDE(_heap_size = 4K); +PROVIDE(_heap_size = 8K); PROVIDE(_end_stack = ORIGIN(RAM) + LENGTH(RAM)); diff --git a/test-app/ARM-stm32h5.ld b/test-app/ARM-stm32h5.ld index a225a39a..f6001569 100644 --- a/test-app/ARM-stm32h5.ld +++ b/test-app/ARM-stm32h5.ld @@ -50,5 +50,5 @@ SECTIONS } PROVIDE(_start_heap = _end); -PROVIDE(_heap_size = 4K); +PROVIDE(_heap_size = 8K); PROVIDE(_end_stack = ORIGIN(RAM) + LENGTH(RAM)); diff --git a/test-app/Makefile b/test-app/Makefile index 5d35498b..3b232f7b 100644 --- a/test-app/Makefile +++ b/test-app/Makefile @@ -114,7 +114,8 @@ ifeq ($(TZEN),1) APP_OBJS+=./wcs/wc_encrypt.o APP_OBJS+=./wcs/wc_port.o endif - CFLAGS+=-DWOLFBOOT_SECURE_CALLS -Wstack-usage=12944 + CFLAGS+=-DWOLFBOOT_SECURE_CALLS -Wstack-usage=19184 + LDFLAGS+=--specs=nosys.specs -u _printf_float endif else APP_OBJS+=../hal/$(TARGET).o