From 0278d3a72e9aae12704dfc6a86de5ae19c4d3950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Frauenschl=C3=A4ger?= Date: Tue, 9 Jun 2026 15:28:55 +0200 Subject: [PATCH] Reduce flash size for Arduino examples --- .github/workflows/arduino.yml | 2 ++ examples/configs/user_settings_arduino.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index 7bab71c119d..f2316f57fc9 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -52,6 +52,7 @@ on: paths: # Specific to this Arduino CI Build (1 of 4) - '.github/workflows/arduino.yml' + - 'examples/configs/user_settings_arduino.h' - 'IDE/ARDUINO/**' - 'src/**' - 'wolfcrypt/**' @@ -61,6 +62,7 @@ on: branches: [ '**' ] paths: - '.github/workflows/arduino.yml' + - 'examples/configs/user_settings_arduino.h' - 'IDE/ARDUINO/**' - 'src/**' - 'wolfcrypt/**' diff --git a/examples/configs/user_settings_arduino.h b/examples/configs/user_settings_arduino.h index 65b8ebcc641..2639bfc584c 100644 --- a/examples/configs/user_settings_arduino.h +++ b/examples/configs/user_settings_arduino.h @@ -186,6 +186,11 @@ * Use the smaller ECC-256 built-in cert set to keep the examples fitting. */ #define USE_CERT_BUFFERS_256 + + /* ECC-256 certs alone no longer fit. Drop the error reason string + * tables to reclaim flash; only wolfSSL_ERR_*_string() text is lost, + * TLS/crypto and DEBUG_WOLFSSL traces are unchanged. */ + #define NO_ERROR_STRINGS #elif defined (__AVR__) || defined(__AVR_ARCH__) || defined(__MEGAAVR__) /* Do not enable TLS on platforms without networking */