From 5ef71cd16793ab254a1f0e7dd46bb9f0c5809f44 Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Tue, 2 Feb 2021 15:09:15 +1100 Subject: [PATCH] stm32/mboot: Change debug compiler optimisation from -O0 to -Og. With mboot encrpytion and fsload enabled, the DEBUG build -O0 compiler settings result in mboot no longer fitting in the 32k sector. This commit changes this to -Og which also brings it into line with the regular stm32 build. --- ports/stm32/mboot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile index ad2fda3ee..0c9244259 100755 --- a/ports/stm32/mboot/Makefile +++ b/ports/stm32/mboot/Makefile @@ -92,7 +92,7 @@ LDFLAGS += --gc-sections # Debugging/Optimization ifeq ($(DEBUG), 1) CFLAGS += -g -DPENDSV_DEBUG -COPT = -O0 +COPT = -Og else COPT += -Os -DNDEBUG endif