mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
esp32/boards: Compile GENERIC_SPIRAM and UM_TINYPICO with -Os.
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.
This commit is contained in:
committed by
Damien George
parent
fe9eaf12f3
commit
ae3d5289a5
@@ -2,4 +2,5 @@ set(SDKCONFIG_DEFAULTS
|
||||
boards/sdkconfig.base
|
||||
boards/sdkconfig.ble
|
||||
boards/sdkconfig.spiram
|
||||
boards/GENERIC_SPIRAM/sdkconfig.board
|
||||
)
|
||||
|
||||
2
ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board
Normal file
2
ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board
Normal file
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user