From ce9197eb209bacd1453ae2ef83523aa0fa1f9b45 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 27 Nov 2020 02:38:00 +0200 Subject: [PATCH] stm32/Makefile: Disable text compression in debug builds. Otherwise the flash overflows. Fixes issue #6653. --- ports/stm32/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index ced851ca38..c3b7bbba98 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