From 15668eb97a7f3fe14cb3e9cef24e4fea7b7003c4 Mon Sep 17 00:00:00 2001 From: wecracy Date: Wed, 22 Dec 2021 14:11:08 +0900 Subject: [PATCH] Arduino Zero Board Upload (Error Fix) using the programming port for arduino zero board, file open fails when arduino.mk call the openocd. this is due to double braces of the file path. we remove the double braces whole though a single brace also works well. --- Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino.mk b/Arduino.mk index 5a04506..fcafe46 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -1733,7 +1733,7 @@ do_upload: do_sam_upload: $(TARGET_BIN) verify_size ifeq ($(findstring openocd, $(strip $(UPLOAD_TOOL))), openocd) - $(OPENOCD) $(OPENOCD_OPTS) -c "telnet_port disabled; program {{$(TARGET_BIN)}} verify reset $(BOOTLOADER_SIZE); shutdown" + $(OPENOCD) $(OPENOCD_OPTS) -c "telnet_port disabled; program $(TARGET_BIN) verify reset $(BOOTLOADER_SIZE); shutdown" else ifeq ($(findstring bossac, $(strip $(UPLOAD_TOOL))), bossac) $(BOSSA) $(BOSSA_OPTS) $(TARGET_BIN) else ifeq ($(findstring gdb, $(strip $(UPLOAD_TOOL))), gdb)