Navigation Menu

Skip to content

Commit

Permalink
Fix avrdude call to make upload work
Browse files Browse the repository at this point in the history
  • Loading branch information
martymcguire committed Jul 13, 2010
1 parent abc3658 commit 0b9c9b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ArduinoSlaveExtruder/Makefile
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b9c9b0

Please sign in to comment.