Nano 33 IoT won't upload sketch

I bought one of these some time ago and I'm pretty sure I had it working, in fact I'm certain
Going back to it, I'm running into problems and looking through Google, I can see that I'm not alone.
Firstly, I connect the correct cable and get the power LED and the pulsing "L" LED.
I don't remember seeing that before (pulsing), but it was a while ago.
I select Nano 33 IoT from boards, and select the port that shows up with the Nano - port 11 in my case.
I try Blink.
It compiles OK.
I try upload and it just sits there doing nothing.
I try a Leonado board with Blink, no trouble.
In Win 10 >Settings >Devices, it shows Arduino Nano 33 IoT bootloader (COM 11).
So everything looks OK.
I'm slightly puzzled by the programmer choices.
I've got Atmel EDBG, Atmel-ICE and Atmel SAM-ICE.
Never seen these before.
The Arduino tutorial on this Nano goes through the Getting Started and it shows the programmer as "AVRISP mk11"
I could use some help with this to avoid thinking its £13 down the pan.
I haven't included the error messages, but I can see it says "port busy" or similar.

@pert If you see this, you might remember I had some problems with OneDrive highjacking the sketchbook location. I don't know if this is relevant.

In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.

Please do this:

  1. Select File > Preferences from the Arduino IDE's menus.
  2. Uncheck the checkbox next to Show verbose output during: compilation
  3. Check the checkbox next to Show verbose output during: upload.
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. Wait for the upload process to finish or hang.
  7. Click on the black console pane at the bottom of the Arduino IDE window.
  8. Press Ctrl+A to select all the text.
  9. Press Ctrl+C to copy the selected text to the clipboard.
  10. Open a forum reply here by clicking the Reply button.
  11. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  12. Press Ctrl+V. This will paste the error output from the upload into the code block.
  13. Move the cursor outside of the code tags before you add any additional text to your reply.
  14. Click the Reply button to post the output.

The Tools > Programmer menu selection is only used when you are doing Tools > Burn Bootloader or "Upload Using Programmer". When you're doing a standard "Upload", the Tools > Programmer menu selection is completely ignored. So it makes no difference at all what you have selected from the Tools > Programmer menu.

Thanks @pert
Here's the output

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\MyName\AppData\Local\Arduino15\packages -hardware C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\MyName\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries -fqbn=arduino:samd:nano_33_iot -vid-pid=2341_0057 -ide-version=10815 -build-path C:\Users\MyName\AppData\Local\Temp\arduino_build_307288 -warnings=none -build-cache C:\Users\MyName\AppData\Local\Temp\arduino_cache_84010 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arduinoOTA.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\MyName\AppData\Local\Arduino15\packages -hardware C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\MyName\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries -fqbn=arduino:samd:nano_33_iot -vid-pid=2341_0057 -ide-version=10815 -build-path C:\Users\MyName\AppData\Local\Temp\arduino_build_307288 -warnings=none -build-cache C:\Users\MyName\AppData\Local\Temp\arduino_cache_84010 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arduinoOTA.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'nano_33_iot' from platform in folder: C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11
Using core 'arduino' from platform in folder: C:\Users\MyName\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11
Detecting libraries used...
"C:\\Users\\MyName\\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=10815 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\nano_33_iot" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\MyName\\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=10815 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\nano_33_iot" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\sketch\\Blink.ino.cpp" -o "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\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\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\MyName\\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=10815 -DARDUINO_SAMD_NANO_33_IOT -DARDUINO_ARCH_SAMD -DCRYSTALLESS -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x8057 -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino NANO 33 IoT\"" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS-Atmel\\1.2.0/CMSIS/Device/ATMEL/" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino/api/deprecated-avr-comp" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\cores\\arduino" "-IC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\nano_33_iot" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\sketch\\Blink.ino.cpp" -o "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\MyName\AppData\Local\Temp\arduino_build_307288\core\variant.cpp.o
Using precompiled core: C:\Users\MyName\AppData\Local\Temp\arduino_cache_84010\core\core_arduino_samd_nano_33_iot_33dbce1b0728bb2557cacfb40ae75109.a
Linking everything together...
"C:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" "-LC:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.11\\variants\\nano_33_iot/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.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\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.elf" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\sketch\\Blink.ino.cpp.o" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math -lm "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/..\\arduino_cache_84010\\core\\core_arduino_samd_nano_33_iot_33dbce1b0728bb2557cacfb40ae75109.a" -Wl,--end-group
"C:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.elf" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.bin"
"C:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.elf" "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.hex"
"C:\\Users\\MyName\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-size" -A "C:\\Users\\MyName\\AppData\\Local\\Temp\\arduino_build_307288/Blink.ino.elf"
Sketch uses 11216 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2384 bytes (7%) of dynamic memory, leaving 30384 bytes for local variables. Maximum is 32768 bytes.
Forcing reset using 1200bps open/close on port COM11
processing.app.debug.RunnerException
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
	at processing.app.SketchController.upload(SketchController.java:732)
	at processing.app.SketchController.exportApplet(SketchController.java:703)
	at processing.app.Editor$UploadHandler.run(Editor.java:2055)
	at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port 'COM11'.
	at processing.app.Serial.touchForCDCReset(Serial.java:107)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)
	... 5 more
Caused by: jssc.SerialPortException: Port name - COM11; Method name - openPort(); Exception type - Port busy.
	at jssc.SerialPort.openPort(SerialPort.java:164)
	at processing.app.Serial.touchForCDCReset(Serial.java:101)
	... 6 more
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\Adafruit_DS2413_GPIO: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\Adafruit_DS2413_GPIO
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\arduino_ds18b20_temperature_sensor: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\arduino_ds18b20_temperature_sensor
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\Bounce: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\Bounce
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\DallasTemperature_372Beta: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\DallasTemperature_372Beta
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\DS18B20: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\DS18B20
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\ds_rtc_lib: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\ds_rtc_lib
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\OneWire2: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\OneWire2
Invalid library found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\one_wire_address_finder: no headers files (.h) found in C:\Users\MyName\OneDrive\Documents (Haswell)\Arduino\libraries\one_wire_address_finder
Error opening serial port 'COM11'. (Port busy)

This type of error can be caused by having the port of your Arduino board open in another application. Only one application can have a serial port open at a time. So if you are using the port in some other application, make sure to close it before uploading.

If you don't have the port open in any other application, try restarting your computer. Occasionally the port can get stuck in an unusable state and restarting the computer fixes that.

@pert
Hello pert
Definitely nothing else using that port.
I've tried a couple of other applications that list the ports in use and they all come up with Nano 33 IoT on port 11.
I can't shut the PC down right now as I'm holding off a Win 10 update.
It might be a couple of days before I can check it out.
I do run the PC for days on time with the Serial Monitor running.
Eventually, the Serial Monitor gives up and disappears. Restarting the IDE fixes that.
I've tried doing the double reset during upload and keeping the reset button down.
The latter comes up with "board at COM11 is not available.
I might try another PC, but that is as heavily worked.
OK, works on the other PC with Blink.
I'll get back when I've done the Win 10 update.
Like someone else said, you need a PC for each board.