diff --git a/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake index 2e1d799b93..dcffe5f01e 100644 --- a/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake +++ b/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake @@ -2,4 +2,5 @@ set(SDKCONFIG_DEFAULTS boards/sdkconfig.base boards/sdkconfig.ble boards/sdkconfig.spiram + boards/GENERIC_SPIRAM/sdkconfig.board ) diff --git a/ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board b/ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board new file mode 100644 index 0000000000..a2859acb5f --- /dev/null +++ b/ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board @@ -0,0 +1,2 @@ +# SPIRAM increases the size of the firmware, use -Os to reduce it again to fit in iram +CONFIG_COMPILER_OPTIMIZATION_SIZE=y diff --git a/ports/esp32/boards/UM_TINYPICO/sdkconfig.board b/ports/esp32/boards/UM_TINYPICO/sdkconfig.board index 766419c7f8..8ed083e62d 100644 --- a/ports/esp32/boards/UM_TINYPICO/sdkconfig.board +++ b/ports/esp32/boards/UM_TINYPICO/sdkconfig.board @@ -3,3 +3,6 @@ CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_ESP32_REV_MIN_1=y CONFIG_LWIP_LOCAL_HOSTNAME="UMTinyPICO" + +# SPIRAM increases the size of the firmware, use -Os to reduce it again to fit in iram +CONFIG_COMPILER_OPTIMIZATION_SIZE=y