[SOLVED] Board mkrzero (platform samd, package arduino) is unknown

Good morning world,

After years of basing all of my projects around the Arduino Nano, I am moving up in the world and shifting all future projects to 32 bit architecture.

It took an hour of installing, downgrading, updating and reinstalling the 'Arduino SAMD Boards' package from the IDE board manager, the package is finally recognised in the IDE. However, I am now getting the following error when trying to compile, even with the example sketches.

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino MKRZero"

Board mkrzero (platform samd, package arduino) is unknown

Error compiling for board Arduino MKRZero.

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

I experienced this error with both the Windows Store App and the downloaded executable IDE.

After searching through this forum, I found that deleting all of the directories inside: C:\Users\USER\AppData\Local\Arduino15\packages\arduino\hardware\samd and reinstalling the 'Arduino SAMD Boards' package fixed the problem for the Arduino IDE executable, but does anyone know how to fix this for the Windows Store App?

Thanks,

Tim

I guess maybe the Windows App Store version installs hardware packages to a different location than C:\Users\USER\AppData\Local\Arduino15\packages\arduino\hardware\samd. You could try to find that location by doing this:

  • Tools > Board Arduino MKRZero
  • File > Examples > SPI > BarometricPressureSensor
  • Sketch > Show Sketch Folder

It's possible that the problem behind your "board... is unknown" error will prevent that from working.

Thanks pert, your suggestion is spot on!

The sketch location is:
C:\Users\USER\Documents\ArduinoData\packages\arduino\hardware\samd\1.6.15\libraries\SPI\examples\BarometricPressureSensor

and the SAMD packages are located here:
C:\Users\USER\Documents\ArduinoData\packages\arduino\hardware\samd

Package deleted, reinstalled and the error has gone.

Now I just need to fix my code to work with the MKRzero...