Skip to content
Snippets Groups Projects
Commit f33487d6 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Added avrdude flashing to makefile.

parent 5b9db15a
No related merge requests found
......@@ -481,3 +481,15 @@ cleandoc:
# Rebuild the Doxygen generated documentation.
.PHONY: rebuilddoc
rebuilddoc: cleandoc doc
# Program to µC
.PHONY: program
program: all flash
# Flash µC - flash and disables JTAG
AVRDUDE_FLAGS = -p x256a3u -c $(AVRDUDE_PROG) -P $(AVRDUDE_PORT) -U flash:w:dstat-firmware.hex:i -U fuse4:w:0xff:m
flash: $(TARGET).hex
avrdude $(AVRDUDE_FLAGS)
......@@ -43,6 +43,10 @@ BUILD_DIR =
MCU = atxmega256a3u
F_CPU = 20000000
# Programming settings
AVRDUDE_PROG = avrispmkII
AVRDUDE_PORT = usb
# Application target name. Given with suffix .a for library and .elf for a
# standalone application.
TARGET = dstat-firmware.elf
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment