From ddf96b53e5344cfcfc5cfa080440a6ec3efe79f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 18 Oct 2015 12:18:56 +0200 Subject: [PATCH] Improved build flags for better debug --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c736b1a..cd57000 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ lib_dir = lib/ # ASSEMBLER CONFIG ##################################################################################### -ASOPTS = --cpu Cortex-M3 --apcs interwork +ASOPTS = --cpu Cortex-M3 -g --apcs interwork # Add library to include path ASOPTS += -I$(lib_dir) @@ -21,6 +21,7 @@ ASOPTS += -I$(lib_dir) ##################################################################################### LDOPTS = --cpu Cortex-M3 --strict +LDOPTS += --bestdebug LDOPTS += --ro-base 0x08000000 --entry 0x08000000 --rw-base 0x20000000 LDOPTS += --entry Reset_Handler --first __Vectors @@ -112,7 +113,7 @@ flash: output.bin disasm: output.axf @echo "== Disassembling $< to output.disasm ==" - @$(OBJDUMP) -d $< > output.disasm + @$(OBJDUMP) -S -d $< > output.disasm # Remove temporary files clean: