From 69089a532e7639fb25c429bfa7d89543277459b2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 5 Dec 2023 10:32:27 +1100 Subject: [PATCH] esp32/boards: Enable further IRAM saving opts to fit ESP32-SPIRAM fw. The amount of free IRAM in ESP32 SPIRAM builds is very small and went over the limit due to commit 30b0ee34d3a7cf6f967387e783268c8a939e04c8. This commit enables further optimisations to reduce IRAM usage. Signed-off-by: Damien George --- ports/esp32/boards/sdkconfig.spiram | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/esp32/boards/sdkconfig.spiram b/ports/esp32/boards/sdkconfig.spiram index 4dfc63624..f5503d554 100644 --- a/ports/esp32/boards/sdkconfig.spiram +++ b/ports/esp32/boards/sdkconfig.spiram @@ -12,4 +12,7 @@ CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192 # SPIRAM increases the size of the firmware and overflows iram0_0_seg, due # to PSRAM bug workarounds. Apply some options to reduce the firmware size. CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y +CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y +CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y