summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2021-02-02 15:09:15 +1100
committerDamien George <damien@micropython.org>2021-02-02 21:25:13 +1100
commit5ef71cd16793ab254a1f0e7dd46bb9f0c5809f44 (patch)
tree7de03429bc4a929145b21f14b3fbdf77ea77b375
parent7be1f7790278d2c40e7a828e340c43f257c7d748 (diff)
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.
-rwxr-xr-xports/stm32/mboot/Makefile2
1 files changed, 1 insertions, 1 deletions
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