8000 stm32/mboot: Change debug compiler optimisation from -O0 to -Og. · micropython/micropython@5ef71cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ef71cd

Browse files
pi-anldpgeorge
authored andcommitted
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.
1 parent 7be1f77 commit 5ef71cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/mboot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ LDFLAGS += --gc-sections
9292
# Debugging/Optimization
9393
ifeq ($(DEBUG), 1)
9494
CFLAGS += -g -DPENDSV_DEBUG
95-
COPT = -O0
95+
COPT = -Og
9696
else
9797
COPT += -Os -DNDEBUG
9898
endif

0 commit comments

Comments
 (0)
0