From 0b9c9b09a084f3ad08ccbac7016e82ad3814a3c1 Mon Sep 17 00:00:00 2001 From: Robert McGuire Date: Tue, 13 Jul 2010 15:32:23 -0400 Subject: [PATCH] Fix avrdude call to make upload work --- ArduinoSlaveExtruder/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArduinoSlaveExtruder/Makefile b/ArduinoSlaveExtruder/Makefile index c6438b8..3231d92 100755 --- a/ArduinoSlaveExtruder/Makefile +++ b/ArduinoSlaveExtruder/Makefile @@ -7,7 +7,7 @@ MCU = atmega168 ADMCU = m168 F_CPU = 16000000L -PORT = /dev/ttyUSB1 +PORT = /dev/tty.usbserial-FTE3N30L UPLOAD_RATE = 19200 AVRDUDE_PROGRAMMER = stk500v1 @@ -69,9 +69,10 @@ LDFLAGS = -lm # Programming support using avrdude. Settings and variables. AVRDUDE_PORT = $(PORT) AVRDUDE_WRITE_FLASH = -U flash:w:build/$(TARGET).hex +AVRDUDE_CONFIG = $(ARDUINO_HOME)/hardware/tools/avr/etc/avrdude.conf AVRDUDE_FLAGS = -V -F \ -p $(ADMCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \ --b $(UPLOAD_RATE) +-b $(UPLOAD_RATE) -C $(AVRDUDE_CONFIG) # Program settings CC = $(AVR_TOOLS_PATH)/avr-gcc