diff --git a/builder/main.py b/builder/main.py index 477ffa61..5e098b4a 100644 --- a/builder/main.py +++ b/builder/main.py @@ -148,7 +148,7 @@ def _update_max_upload_size(env): MKSPIFFSTOOL="mkspiffs", - SIZEPROGREGEXP=r"^(?:\.irom0\.text|\.text|\.data|\.rodata|)\s+([0-9]+).*", + SIZEPROGREGEXP=r"^(?:\.irom0\.text|\.text|\.text1|\.data|\.rodata|)\s+([0-9]+).*", SIZEDATAREGEXP=r"^(?:\.data|\.rodata|\.bss)\s+([0-9]+).*", SIZECHECKCMD="$SIZETOOL -A -d $SOURCES", SIZEPRINTCMD='$SIZETOOL -B -d $SOURCES', @@ -227,6 +227,7 @@ def _update_max_upload_size(env): "-eo", "$SOURCES", "-bs", ".irom0.text", "-bs", ".text", + "-bs", ".text1", "-bs", ".data", "-bs", ".rodata", "-bc", "-ec" @@ -248,6 +249,7 @@ def _update_max_upload_size(env): "-bf", "${__get_board_f_flash(__env__)}", "-bz", "${__get_flash_size(__env__)}", "-bs", ".text", + "-bs", ".text1", "-bs", ".data", "-bs", ".rodata", "-bc", "-ec",