Skip to content

Commit

Permalink
Added the --suppress-bootloader-mem option to the makefile dfu target…
Browse files Browse the repository at this point in the history
…, to ensure that writes to the bootloader section of the AVR's flash memory are ignored (thanks to Axel Rohde).

Fixed incorrect command name for EEPROM memory programming in the makefile dfu-ee target.

Makefile whitespace fixes.

git-svn-id: http://lufa-lib.googlecode.com/svn@1495 d5102386-fcda-11dd-9fdb-3debd5008f28
  • Loading branch information
Dean authored and Dean committed Sep 24, 2010
1 parent 4d78459 commit 04ad8ba
Show file tree
Hide file tree
Showing 69 changed files with 205 additions and 202 deletions.
2 changes: 1 addition & 1 deletion trunk/Bootloaders/CDC/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down
2 changes: 1 addition & 1 deletion trunk/Bootloaders/DFU/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/AudioInput/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -523,7 +523,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -534,7 +534,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/AudioOutput/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -525,7 +525,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -536,7 +536,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/DualVirtualSerial/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/GenericHID/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/Joystick/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/Keyboard/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/KeyboardMouse/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/MIDI/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/MassStorage/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -524,7 +524,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -535,7 +535,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/MassStorageKeyboard/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -524,7 +524,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -535,7 +535,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/Mouse/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/RNDISEthernet/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -540,7 +540,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -551,7 +551,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/VirtualSerial/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down
6 changes: 3 additions & 3 deletions trunk/Demos/Device/ClassDriver/VirtualSerialMouse/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD = USBKEY
BOARD = USBKEY


# Processor frequency.
Expand Down Expand Up @@ -521,7 +521,7 @@ flip: $(TARGET).hex

dfu: $(TARGET).hex
dfu-programmer $(MCU) erase
dfu-programmer $(MCU) flash --debug 1 $(TARGET).hex
dfu-programmer $(MCU) flash --suppress-bootloader-mem --debug 1 $(TARGET).hex
dfu-programmer $(MCU) reset

flip-ee: $(TARGET).hex $(TARGET).eep
Expand All @@ -532,7 +532,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep
$(REMOVE) $(TARGET)eep.hex

dfu-ee: $(TARGET).hex $(TARGET).eep
dfu-programmer $(MCU) flash-eeprom --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) eeprom-flash --debug 1 --suppress-bootloader-mem $(TARGET).eep
dfu-programmer $(MCU) reset


Expand Down

0 comments on commit 04ad8ba

Please sign in to comment.