Annoying error with "sam.h"

megaman_6

4 weeks ago

Hello,

I'm trying to compile a hello world program in the Arduino IDE. I'm having an odd error that I can't understand.

Arduino: 1.8.7 (Windows 10), Board: "Gamebuino Meta"

...\AppData\Local\Arduino15\packages\gamebuino\hardware\samd\1.2.1\cores\arduino/Arduino.h:48:17: fatal error: sam.h: No such file or directory

 #include "sam.h"

                 ^

compilation terminated.

exit status 1
Error compiling for board Gamebuino Meta.

I have the 1.2.1 version of Gamebuino board installed and 1.1.0 of the Gamebuino libraries

This is the code I wrote:

#include <Gamebuino-Meta.h>

void setup() {
  // put your setup code here, to run once:
  gb.begin();

}

void loop() {
  // put your main code here, to run repeatedly:
  while(!gb.update());
  gb.display.clear();

  gb.display.print("hello there");
}

Help, please.

Sorunome

NEW 4 weeks ago

have you also searched for samd in the arduino library manager and installed those?

megaman_6

4 weeks ago

I installed the samd (the program called it "arduino low power") library but that didn't change the result

megaman_6

NEW 4 weeks ago

Sorunome Sorunome

I installed the samd (the program called it "arduino low power") library but that didn't change the result

megaman_6

NEW 4 weeks ago

I figured it out, the ARM Cortex-M0+ board wasn't installed for me. This has the SAMD library included with it.

Thank you for the help either way Sorunome.

You must be logged in in order to post a message on the forum

Log in