Arduino Nano 33 iot wireless scetch updates with ArdinoOTA libary

Hello
I want to do wireless scetch Uploads to my original Nano 33 iot with the ArduinoOTA libary (version 1.0.7) from @Juraj . So far I testet the Example WiFi101_OTA from the libary (with added wifi secrets) but i run into a Problem.
It connects to the wifi just fine (previosly uploadet the scetch with USB) and I can also select the board over the Network port, when I Upload the scetch again using wifi, it asks for the boardpassword which schould be "password" in the unedited scetch.
But heres my problem when i hit upload in the bordpassword menue (with entered password) it just closes the menue and openes it again without uploading.

thats the massage i get

java.io.IOException: Cannot run program "{tools.arduino_ota.cmd}": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
	at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
	at cc.arduino.packages.uploaders.GenericNetworkUploader.uploadUsingPreferences(GenericNetworkUploader.java:99)
	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:2061)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 8 more

I hope someone can help me find the problem
thanks in advance

Hi @moritz_kaisser. There is an unfortunate bug in version 1.8.12 of the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform used by the Nano 33 IoT.

The bug has already been fixed:

But there has not been a new release of the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform since the fix was made.

Recommended workaround

The recommended workaround is to use version 1.8.11 of the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform. You can do that by following these instructions:

  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 (32-bits ARM Cortex-M0+) Boards". Click on it.
  4. Select "1.8.11" from the drop down version menu.
  5. Click the Install button.
  6. Wait for the update to finish.
  7. Click the Close button.

Note that after doing this you may receive notifications that a newer boards platform is available. You must not update back to the version with the bug. You can turn off these notifications by opening File > Preferences in the Arduino IDE and then unchecking the box next to "Check for updates at startup. You should periodically check to see if the next version of the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform has been released because that will have the bug fix as well as other useful improvements.

Alternative workaround #1

An alternative workaround is to apply the fix manually to your current installation of "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" 1.8.12. You can see the necessary changes here:

Alternative workaround #2

Another option for working around the issue is to use Arduino IDE 2.x. The bug only affected the old network upload system used by Arduino IDE 1.x. However, you should be aware that Arduino IDE 2.x is currently in the beta testing stage and there are a lot of known problems. So you might not find it suitable for daily use, but beta testing and providing feedback to Arduino can be an opportunity to make a valuable contribution to the project.

You can get Arduino IDE 2.x here:

https://www.arduino.cc/en/software#future-version-of-the-arduino-ide

2 Likes

Big Thanks for the fast answer
it solved the problem

Yay! I'm very glad it is working for you now.

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