stm32/Makefile: Disable text compression in debug builds.
Otherwise the flash overflows. Fixes issue #6653.
This commit is contained in:
parent
849748873c
commit
ce9197eb20
@ -134,6 +134,8 @@ LDFLAGS += --gc-sections
|
|||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -g -DPENDSV_DEBUG
|
CFLAGS += -g -DPENDSV_DEBUG
|
||||||
COPT = -O0
|
COPT = -O0
|
||||||
|
# Disable text compression in debug builds
|
||||||
|
MICROPY_ROM_TEXT_COMPRESSION = 0
|
||||||
else
|
else
|
||||||
COPT += -Os -DNDEBUG
|
COPT += -Os -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user