Unexpected command line argument: {extra_params}

Hi all,
I am new to arduino zero and having the following problem. I've already check the forum however there is no solution. Please help an thanks in advance.

Problem Description:

The example Blink did work however for the example File/example/Stepper/stepper_oneRevolution the compiling completed without any error but upload failed with error as follows:

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
An error occurred while uploading the sketch
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Unexpected command line argument: {extra_params}

File > References > Setting >
Show verbal output during: compiling and uploading

File/Example/stepper/Stepper_oneRevolution

Arduino: 1.8.16 (Windows 7), Board: "Arduino Zero (Programming Port)"

Sketch uses 13048 bytes (4%) of program storage space. Maximum is 262144 bytes.

Global variables use 3040 bytes (9%) of dynamic memory, leaving 29728 bytes for local variables. Maximum is 32768 bytes.

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)

Licensed under GNU GPL v2

For bug reports, read

	http://openocd.org/doc/doxygen/bugs.html

debug_level: 0

Unexpected command line argument: {extra_params}

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

System Details

Board: genuin Arduino zero
Bought from: Core-electronics.com.au

On the Arduino IDE:

Arduino IDE: Arduino 1.8.16
OS: Windows 7
Board Information:
BN: Arduino Zero (Programming Port)

VID:03eb
PID: 2157
SN: ZP0Z92FCZDMSMK5RZX0Z

Tools:
Board: " Arduino Zero: (Programming port)
Board Manager:
Arduino SAMD (32-bit ARM coretex-M0+) board
Arduino zero (programming port)

Tools:
Port: " COM6 "(arduino zero (programming port)"
Serial ports:
COM6 (arduino zero (programming port)

On Windows 7:
Control Panel > System Security > System > Device Manger
Ports (COM & LPT)
Atmel Corp. EDBG CMSIS-DAP (COM6)
Ametl Corp. EDBG CMSIS-DAP (COM6) properties:
General:
Device status;
This device is working properly

Here is the full message details of compiling and uploading :

Arduino: 1.8.16 (Windows 7), Board: "Arduino Zero (Programming Port)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user1\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user1\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\user1\Documents\Arduino\libraries -fqbn=arduino:samd:arduino_zero_edbg -vid-pid=03EB_2157 -ide-version=10816 -build-path C:\Users\user1\AppData\Local\Temp\arduino_build_706215 -warnings=none -build-cache C:\Users\user1\AppData\Local\Temp\arduino_cache_740744 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -verbose C:\Users\user1\Documents\Arduino\sketch_nov28a\sketch_nov28a.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user1\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user1\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\user1\Documents\Arduino\libraries -fqbn=arduino:samd:arduino_zero_edbg -vid-pid=03EB_2157 -ide-version=10816 -build-path C:\Users\user1\AppData\Local\Temp\arduino_build_706215 -warnings=none -build-cache C:\Users\user1\AppData\Local\Temp\arduino_cache_740744 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.CMSIS.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -verbose C:\Users\user1\Documents\Arduino\sketch_nov28a\sketch_nov28a.ino

Using board 'arduino_zero_edbg' from platform in folder: C:\Users\user1\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12

Using core 'arduino' from platform in folder: C:\Users\user1\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12

Detecting libraries used...

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10816 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\arduino_zero" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp" -o nul

Alternatives for Stepper.h: [Stepper@1.1.3]

ResolveLibrary(Stepper.h)

  -> candidates: [Stepper@1.1.3]

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10816 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\arduino_zero" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Stepper\\src" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp" -o nul

Using cached library dependencies for file: C:\Program Files (x86)\Arduino\libraries\Stepper\src\Stepper.cpp

Generating function prototypes...

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10816 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\arduino_zero" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Stepper\\src" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp" -o "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10816 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Zero\"" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\cores\\arduino" "-IC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\arduino_zero" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Stepper\\src" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp" -o "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp.o"

Compiling libraries...

Compiling library "Stepper"

Using previously compiled file: C:\Users\user1\AppData\Local\Temp\arduino_build_706215\libraries\Stepper\Stepper.cpp.o

Compiling core...

Using previously compiled file: C:\Users\user1\AppData\Local\Temp\arduino_build_706215\core\variant.cpp.o

Using precompiled core: C:\Users\user1\AppData\Local\Temp\arduino_cache_740744\core\core_arduino_samd_arduino_zero_edbg_315f98235f2152854d51f948da738d37.a

Linking everything together...

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.12\\variants\\arduino_zero/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.elf" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\sketch\\sketch_nov28a.ino.cpp.o" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\libraries\\Stepper\\Stepper.cpp.o" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/..\\arduino_cache_740744\\core\\core_arduino_samd_arduino_zero_edbg_315f98235f2152854d51f948da738d37.a" -Wl,--end-group

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.elf" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.bin"

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.elf" "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.hex"

Using library Stepper at version 1.1.3 in folder: C:\Program Files (x86)\Arduino\libraries\Stepper 

"C:\\Users\\user1\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\user1\\AppData\\Local\\Temp\\arduino_build_706215/sketch_nov28a.ino.elf"

Sketch uses 13048 bytes (4%) of program storage space. Maximum is 262144 bytes.

Global variables use 3040 bytes (9%) of dynamic memory, leaving 29728 bytes for local variables. Maximum is 32768 bytes.

C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/bin/openocd.exe -d2 -s C:\Users\user1\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/share/openocd/scripts/ -f interface/{protocol} -c set telnet_port 0 {extra_params} -f target/at91samdXX.cfg -c telnet_port disabled; program {C:\Users\user1\AppData\Local\Temp\arduino_build_706215/sketch_nov28a.ino.bin} verify reset 0x2000; shutdown 

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)

An error occurred while uploading the sketch

Licensed under GNU GPL v2

For bug reports, read

	http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

Unexpected command line argument: {extra_params}

Hi @nhatd. It seems that a change made in the latest version of the "Arduino SAMD Boards" platform release 1.8.12 broke uploads for the "Zero (Programming Port)" board:

The easiest workaround is to roll back to the previous version of "Arduino SAMD Boards". I'll provide instructions for that:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus.
  2. Wait for the updates to finish.
  3. Scroll down through the list of boards platforms until you see "Arduino SAMD Boards (32-bits ARM Cortex-M0+)". Click on it.
  4. Select "1.8.11" from the "Select version" menu.
  5. Click the Install button.
  6. Wait for the installation to finish.
  7. Click the Close button.

You should now be able to upload to your Zero without getting this error.

If you have "Check for updates on start up" enabled in File > Preferences then the Arduino IDE will periodically notify you that the newer version of "Arduino SAMD Boards" is available. You will need to refrain from updating back to "Arduino SAMD Boards" 1.8.12, otherwise the upload problem will come back. However, you should keep an eye out for the 1.8.13 release, since this will contain the fix for the bug as well as other useful improvements.


There is already a proposal for a fix for this bug:

As an alternative to the workaround I described above, you can manually apply the patch for that fix to your current "Arduino SAMD Boards" 1.8.12 installation, as shown here:
https://github.com/arduino/ArduinoCore-samd/pull/655/files

1 Like

Hi In0,
Thank you very much for your help and your so quick response.
Nhat

You are welcome. I'm glad if I was able to be of assistance.

Wth, it just started to happen again???

Had to downgrade to 1.8.10 to get going again; the only thing I done, loaded the adafruit libraries for a spi tft... .11 and .12 don't work here...

Is this still an issue? I just spent a lot of time trying to load my new Zero and get the same issue. I am using IDE 2.0.0-rc3 on Ubuntu. It will load using the native port but although new to this two port device, I see the programing port should work??

Unfortunately, yes. Even though the bug was fixed last November, Arduino has not made a new release of the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" boards platform since that time. So the bug is still present in the installation of the latest version you get from the Arduino IDE Boards Manager.

You will need to follow the instructions I provided above to work around this issue. Please let me know if you have any questions or problems.

Thanks for the update and sharing. Guess I am shocked that this is still an issue, seems basic to me that this feature would be needed to make full use of the Zero, perhaps you can still do de-bug as that seems to be the point of the Zero.
I am back on a windows installation, just easier, bigger screen. I said I was using IDE 2.0.0-rc3 and do not seem to be able to find the files for openocd upload pattern. Might be that this was for the earlier versions.
I thought one of the reasons for moving to the 2.x IDE was for debugging from the IDE, this is what attracted me, I had read about using the ATMEL STUDIO approach but was a little put off by the complexity. Then II saw IDE 2.0 and thought how wonderful it would be to finally have a single environment and really debug at this level.
So, please help me create an IDE that will work, tell me if I should find the old 1.8 version or how to patch either the 2.x or whatever. Does this issue affect any other aspects of the USB communications becasue that also seems to be an issue for me. 73's Steve

OK bit wiser. I did not know that the fix was for the specific board library loaded automatically by the IDE, now I have also understood that the 1.8.10 was its version to use. I confused this with the 1.8.13 which appears at the top of the older IDE.
I can now download through the programmer interface.
Big Thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.