From 5950b75da42fd2a8038a07006465b87396a69e45 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 1 Apr 2024 20:38:53 +0200 Subject: [PATCH] Debug info in elf --- makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/makefile b/makefile index 6acd480..0af2f5d 100644 --- a/makefile +++ b/makefile @@ -9,7 +9,7 @@ MCU = atmega328p QEMU_MACHINE_NAME = uno # Compiler flags -CFLAGS = -std=c2x -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3 +CFLAGS = -std=c99 -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -Os -g # Source files SRCS = main.c @@ -30,7 +30,6 @@ all: $(TARGET).hex # Link object files $(TARGET).elf: $(OBJS) $(CC) $(CFLAGS) $(OBJS) -o $(TARGET).elf - avr-strip $(TARGET).elf # Convert ELF to HEX $(TARGET).hex: $(TARGET).elf