stm32/Makefile: Disable text compression in debug builds.

Otherwise the flash overflows.

Fixes issue #6653.
This commit is contained in:
iabdalkader 2020-11-27 02:38:00 +02:00 committed by Damien George
parent 849748873c
commit ce9197eb20

View File

@ -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