diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile index f6d1555f8fd2..d6d239f39c45 100644 --- a/ports/raspberrypi/Makefile +++ b/ports/raspberrypi/Makefile @@ -207,7 +207,7 @@ CFLAGS += $(OPTIMIZATION_FLAGS) CFLAGS += $(CFLAGS_CYW43) #Debugging/Optimization ifeq ($(DEBUG), 1) - CFLAGS += -ggdb3 -O3 + CFLAGS += -ggdb3 -Og # No LTO because we may place some functions in RAM instead of flash. else CFLAGS += -DNDEBUG