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