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.
This commit is contained in:
wecracy 2021-12-22 14:11:08 +09:00
parent adf09c1164
commit 15668eb97a

View file

@ -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)