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]