From 459ec8a7d689c9063fdda8af171c1c1a3211fb74 Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Thu, 16 Jul 2026 05:43:13 +0200 Subject: [PATCH] Fix warnings for test-app crypto test --- test-app/Makefile | 1 + test-app/app_max32666.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test-app/Makefile b/test-app/Makefile index 4b79c4ec..e0ded2f7 100644 --- a/test-app/Makefile +++ b/test-app/Makefile @@ -188,6 +188,7 @@ WOLFCRYPT_SUPPORT=0 # full crypto test (AES, RNG, MAA math, ECDHE). ifeq ($(TARGET),max32666) ifeq ($(WOLFCRYPT_MAX32666_TEST),1) + STACK_USAGE_LIMIT:=5200 CFLAGS += -DWOLFCRYPT_MAX32666_TEST CFLAGS += -DMAX3266X_RNG -DMAX3266X_AES -DMAX3266X_MATH CFLAGS += -DHAVE_ECC_CDH -DHAVE_ECC_DHE diff --git a/test-app/app_max32666.c b/test-app/app_max32666.c index 7efd79de..cac318c5 100644 --- a/test-app/app_max32666.c +++ b/test-app/app_max32666.c @@ -16,7 +16,6 @@ #include "hal.h" #include "wolfboot/wolfboot.h" #include "printf.h" -#include "hal/max32666.h" #ifdef WOLFCRYPT_MAX32666_TEST #include @@ -24,6 +23,11 @@ #include #include #include +#endif + +#include "hal/max32666.h" + +#ifdef WOLFCRYPT_MAX32666_TEST /* * AES-GCM 256-bit known-answer test