summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-12-05 10:32:27 +1100
committerDamien George <damien@micropython.org>2023-12-06 12:35:45 +1100
commit69089a532e7639fb25c429bfa7d89543277459b2 (patch)
treed9dc6a35d8c0673cc9e900d50e2b6a3064c636f7
parent527c4b0497249f8716a0130ad729b3a833e64ec2 (diff)
downloadmicropython-69089a532e7639fb25c429bfa7d89543277459b2.tar.gz
micropython-69089a532e7639fb25c429bfa7d89543277459b2.zip
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 <damien@micropython.org>
-rw-r--r--ports/esp32/boards/sdkconfig.spiram3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/esp32/boards/sdkconfig.spiram b/ports/esp32/boards/sdkconfig.spiram
index 4dfc63624b..f5503d5541 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