remote debug
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 24 Sep 2015 10:32:37 +0000 (12:32 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
Makefile

index f261940..ad467e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ ARCH = armv6-m
 CROSS_COMPILE ?= arm-none-eabi-
 CC = $(CROSS_COMPILE)gcc
 FOPTS = -fno-builtin -ffunction-sections -fdata-sections -ffreestanding
-CFLAGS = -Wall -O2 -mthumb -mcpu=$(CPU) $(FOPTS)
-LINKOPTS = -static -nostartfiles -nostdlib \
+CFLAGS = -Wall -g -O2 -mthumb -mcpu=$(CPU) $(FOPTS)
+LINKOPTS = -static -g -nostartfiles -nostdlib \
                   -Wl,--gc-sections -Wl,--build-id=none \
                   -Wl,-Map=$(TARGET_DIR)/lpc_map_$(LPC).map -Tlpc_link_$(LPC).ld