aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/nuevo_diskloader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bootloaders/nuevo_diskloader/Makefile')
-rw-r--r--bootloaders/nuevo_diskloader/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/bootloaders/nuevo_diskloader/Makefile b/bootloaders/nuevo_diskloader/Makefile
index 6ac3db3..cfd3425 100644
--- a/bootloaders/nuevo_diskloader/Makefile
+++ b/bootloaders/nuevo_diskloader/Makefile
@@ -40,8 +40,11 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2
## Linker flags
LDFLAGS = $(COMMON)
-LDFLAGS += -Wl,-gc-sections,-Map=DiskLoader.map,--section-start=.text=0x7800,--relax
-LDFLAGS += -nodefaultlibs -nostartfiles
+LDFLAGS += -Wl,-gc-sections,-Map=DiskLoader.map,--cref
+LDFLAGS += -Wl,--section-start=.text=0x7800,--relax
+LDFLAGS += -Wl,--gc-sections
+#LDFLAGS += -nodefaultlibs -nostartfiles
+#LDFLAGS += -nostartfiles
## Intel Hex file production flags
@@ -102,4 +105,4 @@ size: $(TARGET)
# @avr-size -C --mcu=${MCU} ${TARGET}.elf
program: $(TARGET).hex
- $(AVRDUDE) $(AVRDUDE_FLAGS) -B 5 -u -U flash:w:$(TARGET).hex \ No newline at end of file
+ $(AVRDUDE) $(AVRDUDE_FLAGS) -B 1 -u -U flash:w:$(TARGET).hex \ No newline at end of file