From 58c1ae31ee6d5b406f359eb3cf49df87185d46a8 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Tue, 7 Apr 2015 18:19:13 +0200 Subject: [PATCH] Makefile: local openocd config folder --- sam3s_example/Makefile | 2 +- sam3s_example/openocd/openocd.cfg | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 sam3s_example/openocd/openocd.cfg diff --git a/sam3s_example/Makefile b/sam3s_example/Makefile index b702c336..88cab26b 100644 --- a/sam3s_example/Makefile +++ b/sam3s_example/Makefile @@ -178,7 +178,7 @@ endef $(foreach MEMORY, $(MEMORIES), $(eval $(call RULES,$(MEMORY)))) program: - openocd -f /home/chrysh/ba_thesis/thesis/openocd/openocd.cfg -c "init" -c "halt" -c "flash write_bank 0 ./bin/project-flash.bin 0" -c "reset" -c "shutdown" + openocd -f openocd/openocd.cfg -c "init" -c "halt" -c "flash write_bank 0 ./bin/project-flash.bin 0" -c "reset" -c "shutdown" clean: -rm -fR $(OBJ)/*.o $(BIN)/*.bin $(BIN)/*.elf $(BIN)/*.elf.txt $(BIN)/*.map $(BIN)/*.lst diff --git a/sam3s_example/openocd/openocd.cfg b/sam3s_example/openocd/openocd.cfg new file mode 100644 index 00000000..9ab657a0 --- /dev/null +++ b/sam3s_example/openocd/openocd.cfg @@ -0,0 +1,2 @@ +source [find interface/ftdi/jtagkey.cfg] +source [find target/at91sam3sXX.cfg]