summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2020-11-27 02:38:00 +0200
committerDamien George <damien@micropython.org>2020-12-07 16:45:15 +1100
commitce9197eb209bacd1453ae2ef83523aa0fa1f9b45 (patch)
treec4ccaf53d27e18ad02840e5c06408933d5c58ff9
parent849748873cd838be0d91555b47f1447f4476175a (diff)
stm32/Makefile: Disable text compression in debug builds.
Otherwise the flash overflows. Fixes issue #6653.
-rw-r--r--ports/stm32/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index ced851ca3..c3b7bbba9 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -134,6 +134,8 @@ LDFLAGS += --gc-sections
ifeq ($(DEBUG), 1)
CFLAGS += -g -DPENDSV_DEBUG
COPT = -O0
+# Disable text compression in debug builds
+MICROPY_ROM_TEXT_COMPRESSION = 0
else
COPT += -Os -DNDEBUG
endif