diff options
author | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-10 23:50:56 +0000 |
---|---|---|
committer | utzig <utzig@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-10 23:50:56 +0000 |
commit | 7350cf2998058828b7d578687e0b8844379c6c36 (patch) | |
tree | 07a0906397cd71a1463b3607b1bbdfbea70dbf50 /demos/AVR/RT-ARDUINOMEGA/Makefile | |
parent | 6924ea9aeacac1d4a0d69271d0cd973c0e7038e2 (diff) | |
download | ChibiOS-7350cf2998058828b7d578687e0b8844379c6c36.tar.gz ChibiOS-7350cf2998058828b7d578687e0b8844379c6c36.tar.bz2 ChibiOS-7350cf2998058828b7d578687e0b8844379c6c36.zip |
AVR: defaulting to using Arduino bootloader for programming
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7029 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR/RT-ARDUINOMEGA/Makefile')
-rw-r--r-- | demos/AVR/RT-ARDUINOMEGA/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/demos/AVR/RT-ARDUINOMEGA/Makefile b/demos/AVR/RT-ARDUINOMEGA/Makefile index f8d68d629..f6ed4629f 100644 --- a/demos/AVR/RT-ARDUINOMEGA/Makefile +++ b/demos/AVR/RT-ARDUINOMEGA/Makefile @@ -250,10 +250,10 @@ LDFLAGS += $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB) # Type: avrdude -c ?
# to get a full listing.
#
-AVRDUDE_PROGRAMMER = stk500v2
+AVRDUDE_PROGRAMMER = arduino
# com1 = serial port. Use lpt1 to connect to parallel port.
-AVRDUDE_PORT = /dev/tty.usbmodemfd121 # programmer connected to serial device
+AVRDUDE_PORT = /dev/tty.usbserial-A7004IPU
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
@@ -272,7 +272,10 @@ AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex # to submit bug reports.
#AVRDUDE_VERBOSE = -v -v
-AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
+AVRDUDE_FLAGS = -p $(MCU)
+AVRDUDE_FLAGS += -P $(AVRDUDE_PORT)
+AVRDUDE_FLAGS += -b 57600
+AVRDUDE_FLAGS += -c $(AVRDUDE_PROGRAMMER)
AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
|