diff --git a/DSTAT-temp/Makefile b/DSTAT-temp/Makefile
index bd0371dc9ffccdbce2337a125e7b9d4bac681634..080fd91d10c06b3c8df1dc37669334892768e8cf 100644
--- a/DSTAT-temp/Makefile
+++ b/DSTAT-temp/Makefile
@@ -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)
+
+
diff --git a/DSTAT-temp/config.mk b/DSTAT-temp/config.mk
index df9f60835c6c5b2d8a0317b3ffedfda2bdb8aa5c..a0f9b72a34a44bc802ff998d5af396d2ae2a0b82 100644
--- a/DSTAT-temp/config.mk
+++ b/DSTAT-temp/config.mk
@@ -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