aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/Makefile
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2012-01-10 16:09:56 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2012-01-10 16:09:56 -0500
commit63a86b67ca5944ce7ecee1af861a90d72e7af51d (patch)
tree6e956fa2156dd4b8f515878856cec4abd4b9e4d4 /bootloaders/diskloader/Makefile
parent0ea882bc247b3cca8788f329d9fe802107fa8960 (diff)
changed USB PID for Leonardo and Micro bootloaders
sketch and bootloader will use different PIDs to distinguish one from the other.
Diffstat (limited to 'bootloaders/diskloader/Makefile')
-rw-r--r--bootloaders/diskloader/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/bootloaders/diskloader/Makefile b/bootloaders/diskloader/Makefile
index 6ac3db3..ed4ba78 100644
--- a/bootloaders/diskloader/Makefile
+++ b/bootloaders/diskloader/Makefile
@@ -9,21 +9,22 @@ CC = avr-gcc
# BOARD2
MCU = atmega32u4
-AVR_FREQ = 16000000L
+AVR_FREQ = 16000000L
-# Specify the Arduino model using the assigned PID. This is used by Descriptors.c
-# to set PID and product descriptor string
-# Arduino Leonardo PID
-ARDUINO_MODEL_PID = 0x0034
-# Arduino Micro PID
-#ARDUINO_MODEL_PID = 0x0035
+# Specify the Arduino model using the assigned PID. This is used by Descriptors.c
+# to set PID and product descriptor string
+
+# Arduino Leonardo bootloader PID
+ARDUINO_MODEL_PID = 0x0030
+# Arduino Micro bootloader PID
+#ARDUINO_MODEL_PID = 0x0031
# Change if your programmer is different
AVRDUDE_PROGRAMMER = avrispmkII
AVRDUDE_PORT = usb
# program name should not be changed...
-PROGRAM = DiskLoader
+PROGRAM = DiskLoader
AVRDUDE = avrdude
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -p $(MCU)
@@ -43,7 +44,6 @@ LDFLAGS = $(COMMON)
LDFLAGS += -Wl,-gc-sections,-Map=DiskLoader.map,--section-start=.text=0x7800,--relax
LDFLAGS += -nodefaultlibs -nostartfiles
-
## Intel Hex file production flags
HEX_EEPROM_FLAGS = -j .eeprom
HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load"
@@ -102,4 +102,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