Skip to content

Commit

Permalink
esp32/boards: Compile GENERIC_SPIRAM and UM_TINYPICO with -Os.
Browse files Browse the repository at this point in the history
These boards do not build with IDF v4.4 because the section .iram0.text
does not fit in region iram0_0_seg.  Enabling SPIRAM increases the code
size so use -Os instead of -O2 to build these boards.

Fixes issue #8260.
  • Loading branch information
stephanelsmith authored and dpgeorge committed Apr 14, 2022
1 parent fe9eaf1 commit ae3d528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake
Expand Up @@ -2,4 +2,5 @@ set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/sdkconfig.spiram
boards/GENERIC_SPIRAM/sdkconfig.board
)
2 changes: 2 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions ports/esp32/boards/UM_TINYPICO/sdkconfig.board
Expand Up @@ -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

0 comments on commit ae3d528

Please sign in to comment.