From 19f1639a7cff0b2d46a016d6c195e64d35ea5e52 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Wed, 21 Oct 2015 12:32:43 +0100 Subject: [PATCH] Quick makefile for flashing on Linux using the Atmel ICE programmer. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2e3b480 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +AVRDUDE ?= avrdude +AVR_PART ?= atmega328p +PROGRAMMER ?= atmelice_isp + +PROJECT = nRF24_BLE_Temperature +BUILD_DIR ?= /tmp/build5895373284071051029.tmp + + +flash: flash_prog flash_eeprom + +flash_prog: + $(AVRDUDE) -p $(AVR_PART) -c $(PROGRAMMER) -U flash:w:$(BUILD_DIR)/$(PROJECT).cpp.hex:i + +flash_eeprom: + $(AVRDUDE) -p $(AVR_PART) -c $(PROGRAMMER) -U eeprom:w:$(BUILD_DIR)/$(PROJECT).cpp.eep:i + +dump_eeprom: + $(AVRDUDE) -p $(AVR_PART) -c $(PROGRAMMER) -U eeprom:r:-:i + +.PHONY: flash_prog flash_eeprom dump_eeprom -- 2.23.0