First compile for the new NANO 33 IOT

Today I have installed the necessary SAMD library as described on the Arduino page for this new controller. The first compiler run ends with a very clear error message:

In file included from ...\AppData\Local\Temp\arduino_build_534020\sketch\Blink.ino.cpp:1:0:
...\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.3\cores\arduino/Arduino.h:48:10: fatal error: sam.h: No such file or directory
#include "sam.h"

  • ^~~~~~~*
    compilation terminated.
    exit status 1
    Fehler beim Kompilieren für das Board Arduino NANO 33 IoT.

OK - this is very new. Where is the mistake?
Used: Arduino IDE 1.8.9 at Windows 10.

1 Like

This indicates something has gone wrong with your "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform installation. To make sure it has been fully uninstalled you need to take some drastic action. Be aware this is somewhat advanced and will remove all boards you have installed via Boards Manager:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Click the link on the line following "More preferences can be edited directly in the file".
    This will open the Arduino15 (or similar name depending on operating system) folder.
  3. Delete all files and folders under the Arduino15 folder except for preferences.txt.
    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!
  4. Select Tools > Board > Boards Manager from the Arduino IDE menus.
  5. Wait for the updates to finish.
  6. Scroll down until you see the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" entry. Click on it.
  7. Click the Install button.
  8. Wait for the installation to finish.
  9. Click the Close button.

After that, hopefully you'll be able to compile your sketch.

1 Like

To pert: Thank you very much! After a radical delete and installing the SAMD library again it works!

You're welcome. I'm glad to hear it's working now. Enjoy!
Per