]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
added target program_bootloader to cooler makefile
authorMichael Wiebusch <m.wiebusch@gsi.de>
Thu, 16 Apr 2015 12:07:22 +0000 (14:07 +0200)
committerMichael Wiebusch <m.wiebusch@gsi.de>
Thu, 16 Apr 2015 12:07:22 +0000 (14:07 +0200)
atmega32u4/atmel_stock_bootloader/avrdude_command.txt [new file with mode: 0644]
atmega32u4/cooler/Makefile

diff --git a/atmega32u4/atmel_stock_bootloader/avrdude_command.txt b/atmega32u4/atmel_stock_bootloader/avrdude_command.txt
new file mode 100644 (file)
index 0000000..c123be5
--- /dev/null
@@ -0,0 +1,3 @@
+avrdude -p atmega32u4 -P usb -c dragon_jtag -V   -U flash:w:ATMega32U4-usbdevice_dfu-1_0_0.hex
+
+avrdude -p atmega32u4 -P usb -c dragon_jtag -V   -U lfuse:w:0xde:m -U hfuse:w:0xd9:m -U efuse:w:0xf3:m 
index 40cd5d9a338049a2982b858bd279224938cb029e..5a314d932b8c57b94c8c557d3844ea492eb1bae1 100644 (file)
@@ -223,5 +223,10 @@ depend:
                >> $(MAKEFILE); \
        $(CC) -M -mmcu=$(MCU) $(CDEFS) $(CINCS) $(SRC) $(ASRC) >> $(MAKEFILE)
 
-.PHONY:        all build elf hex eep lss sym program coff extcoff clean depend
+.PHONY:        all build elf hex eep lss sym program coff extcoff clean depend program_bootloader program_arduino
 
+program_bootloader: all
+       dfu-programmer $(MCU) erase && dfu-programmer $(MCU) flash $(TARGET).hex && dfu-programmer $(MCU) start
+
+program_arduino: all
+       avrdude -patmega32u4 -cavr109 -P$(PORT) -b57600 -D -Uflash:w:$(TARGET).hex:i