Error compiling for board Gamebuino Meta.

MineLab

il y a 5 ans

I try to compile this code.

But I have error Error compiling for board Gamebuino Meta.

//imports the Gamebuino library and the gb object 
#include <Gamebuino-Meta.h>
// the setup routine runs once when Gamebuino starts up
void setup(){
  // initialize the Gamebuino object
  gb.begin();
}
// the loop routine runs over and over again forever
void loop(){
  // wait until the gamebuino is ready to update at stable 25 FPS
  // this also updates sounds, button presses... everything!
  while(!gb.update());

  // clear the previous screen
  gb.display.clear();

  //prints Hello World! on the screen
  gb.display.println("hello world!");
  //declare a variable named count of type integer :
  int count;
  //get the number of frames rendered and assign it to the "count" variable
  count = gb.frameCount;
  //prints the variable "count"
  gb.display.println(count);
}


jicehel

NEW il y a 5 ans

Could you please copy the begin of the list oferrors you have then you try to compile ?

Else, are you sure about the function count = gb.frameCount; ?
I don't remember of this function but if this function exist you should write count = gb.frameCount();

MineLab

il y a 5 ans

It is?

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

C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\tools-builder -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware\tools\avr -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -built-in-libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\libraries -libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -ide-version=10805 -build-path C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967 -warnings=default -build-cache C:\Users\ASUS\AppData\Local\Temp\arduino_cache_408835 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\a_Hello\a_Hello.ino
C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\arduino-builder -compile -logger=machine -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\tools-builder -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware\tools\avr -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -built-in-libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\libraries -libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -ide-version=10805 -build-path C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967 -warnings=default -build-cache C:\Users\ASUS\AppData\Local\Temp\arduino_cache_408835 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\a_Hello\a_Hello.ino
Using board 'gamebuino_meta_native' from platform in folder: C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1
Using core 'arduino' from platform in folder: C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1
Detecting libraries used...
"C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/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  -D__SKETCH_NAME__="""a_Hello.ino""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"' "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ASUS\AppData\Local\Temp\arduino_build_752967" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp" -o "nul"
"C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/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  -D__SKETCH_NAME__="""a_Hello.ino""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"' "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ASUS\AppData\Local\Temp\arduino_build_752967" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp" -o "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd.h:105,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/sam.h:470,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino/Arduino.h:48,

                 from C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp:1:

C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:237:26: fatal error: core_cm0plus.h: No such file or directory

 #include <core_cm0plus.h>

                          ^

compilation terminated.

exit status 1
Error compiling for board Gamebuino Meta.

MineLab

NEW il y a 5 ans

jicehel jicehel

It is?

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

C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\tools-builder -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware\tools\avr -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -built-in-libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\libraries -libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -ide-version=10805 -build-path C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967 -warnings=default -build-cache C:\Users\ASUS\AppData\Local\Temp\arduino_cache_408835 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\a_Hello\a_Hello.ino
C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\arduino-builder -compile -logger=machine -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware -hardware C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\tools-builder -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\hardware\tools\avr -tools C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages -built-in-libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\libraries -libraries C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -ide-version=10805 -build-path C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967 -warnings=default -build-cache C:\Users\ASUS\AppData\Local\Temp\arduino_cache_408835 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.CMSIS.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.bossac.path=C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\bossac\1.6.1-arduino -verbose C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\sketchbook\a_Hello\a_Hello.ino
Using board 'gamebuino_meta_native' from platform in folder: C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1
Using core 'arduino' from platform in folder: C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1
Detecting libraries used...
"C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/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  -D__SKETCH_NAME__="""a_Hello.ino""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"' "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ASUS\AppData\Local\Temp\arduino_build_752967" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp" -o "nul"
"C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/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  -D__SKETCH_NAME__="""a_Hello.ino""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD  -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino Zero"' "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ASUS\AppData\Local\Temp\arduino_build_752967" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp" -o "C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:69:0,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd.h:105,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/sam.h:470,

                 from C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\gamebuino\hardware\samd\1.2.1\cores\arduino/Arduino.h:48,

                 from C:\Users\ASUS\AppData\Local\Temp\arduino_build_752967\sketch\a_Hello.ino.cpp:1:

C:\Users\ASUS\Desktop\FRanek\arduino1.8.5-PortableWin\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:237:26: fatal error: core_cm0plus.h: No such file or directory

 #include <core_cm0plus.h>

                          ^

compilation terminated.

exit status 1
Error compiling for board Gamebuino Meta.

Sorunome

NEW il y a 5 ans

You probably forgot to install the samd boards, as stated here in step II.8!

MineLab

NEW il y a 5 ans

I've got samd boards.

Sorunome

NEW il y a 5 ans

is your arduino IDE up-to-date? are the board definitions up-to-date? can you try uninstalling and re-installing the boards?

MineLab

NEW il y a 5 ans

Arduino 1.8.5 

Library and board is updated

Sorunome

NEW il y a 5 ans

Did you select the "Gamebuino Meta" board when compiling? Autodetect does not work correctly

MineLab

NEW il y a 5 ans

Problem solved.

I uninstall and install arduino.