8000 boards/UM_TINYPICO/sdkconfig.board: SPIRAM iram will not fit. · micropython/micropython@e15ab1a · GitHub
[go: up one dir, main page]

Skip to content

Commit e15ab1a

Browse files
boards/UM_TINYPICO/sdkconfig.board: SPIRAM iram will not fit.
TINYPICO firmware build failing with error: Micropython.elf section .iram0.text will not fit in region iram0_0_seg. Changing compiler option to -Os (CONFIG_COMPILER_OPTIMIZATION_SIZE=y) succesfully builds.
1 parent d242a9b commit e15ab1a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ set(SDKCONFIG_DEFAULTS
22
boards/sdkconfig.base
33
boards/sdkconfig.ble
44
boards/sdkconfig.spiram
5+
boards/GENERIC_SPIRAM/sdkconfig.board
56
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#SPIRAM increases the size of the firmware, so use -Os to reduce it again to fit in iram
2+
CONFIG_COMPILER_OPTIMIZATION_SIZE=y

ports/esp32/boards/UM_TINYPICO/sdkconfig.board

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
33
CONFIG_SPIRAM_SPEED_80M=y
44
CONFIG_ESP32_REV_MIN_1=y
55
CONFIG_LWIP_LOCAL_HOSTNAME="UMTinyPICO"
6+
7+
#SPIRAM increases the size of the firmware, so use -Os to reduce it again to fit in iram
8+
CONFIG_COMPILER_OPTIMIZATION_SIZE=y

0 commit comments

Comments
 (0)
0