From: Michael Wiebusch Date: Mon, 8 Dec 2014 13:57:12 +0000 (+0100) Subject: modified daqi Makefile -> make program_dfu, added a note concerning bootloader relate... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a08f6af04f4bf2f16d864a33f13a12274303ec43;p=avr.git modified daqi Makefile -> make program_dfu, added a note concerning bootloader related fusebits in mega32u4 --- diff --git a/atmega32u4/ATMega32U4-usbdevice_dfu-1_0_0.hex b/atmega32u4/atmel_stock_bootloader/ATMega32U4-usbdevice_dfu-1_0_0.hex similarity index 100% rename from atmega32u4/ATMega32U4-usbdevice_dfu-1_0_0.hex rename to atmega32u4/atmel_stock_bootloader/ATMega32U4-usbdevice_dfu-1_0_0.hex diff --git a/atmega32u4/atmel_stock_bootloader/dfu-bootloader.pdf b/atmega32u4/atmel_stock_bootloader/dfu-bootloader.pdf new file mode 100644 index 0000000..d2aeb33 Binary files /dev/null and b/atmega32u4/atmel_stock_bootloader/dfu-bootloader.pdf differ diff --git a/atmega32u4/atmel_stock_bootloader/standard fuse bits for stack bootloader b/atmega32u4/atmel_stock_bootloader/standard fuse bits for stack bootloader new file mode 100644 index 0000000..edf8720 --- /dev/null +++ b/atmega32u4/atmel_stock_bootloader/standard fuse bits for stack bootloader @@ -0,0 +1,2 @@ +avrdude -p atmega32u4 -c dragon_isp -U lfuse:w:0xde:m -U hfuse:w:0xd9:m -U efuse:w:0xf3:m + diff --git a/atmega32u4/daqi/Makefile b/atmega32u4/daqi/Makefile index b6dae5f..b372769 100644 --- a/atmega32u4/daqi/Makefile +++ b/atmega32u4/daqi/Makefile @@ -144,6 +144,8 @@ sym: $(TARGET).sym program: $(TARGET).hex $(TARGET).eep $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) +program_dfu: $(TARGET).hex + dfu-programmer $(MCU) erase && dfu-programmer $(MCU) flash $(TARGET).hex && dfu-programmer $(MCU) start