0

Errors compiling for Circuit Playground Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Errors compiling for Circuit Playground Express

by pj1138 on Tue Jul 11, 2017 8:36 pm

I have a new Circuit Playground Express I'm trying to write some Arduino code for.
- Fresh install of Arduino IDE 1.8.3
- Installed the Adafruit extensions from https://adafruit.github.io/arduino-boar ... index.json
- Select Adafruit Circuit Playground Express as my board.
- Load the playground express vu_meter (or any other example) and try and compile

Code: Select all | TOGGLE FULL SIZE
In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Firmata.h:17:0,

                 from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/Adafruit_CircuitPlayground.h:23,

                 from C:\Users\xxx\AppData\Local\Temp\arduino_modified_sketch_663795\vu_meter.ino:23:

C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Boards.h:708:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"


#error "Please edit Boards.h with a hardware abstraction for this board"

Any ideas?

pj1138
 
Posts: 6
Joined: Tue Jul 11, 2017 7:39 pm

Re: Errors compiling for Circuit Playground Express

by adafruit_support_rick on Wed Jul 12, 2017 8:10 am

It means that the board type constant for the CP express is not defined. Make sure you have Circuit Playground Express selected as the board type.

You can go into Arduino Preferences and check the box for verbose on compile, then post the compilation trace here

adafruit_support_rick
 
Posts: 34563
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Errors compiling for Circuit Playground Express

by pj1138 on Wed Jul 12, 2017 9:49 am

Here is the compile trace. Do I need to get the board files from somewhere other than via the board manager?

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.3 (Windows 10), Board: "Adafruit Circuit Playground Express"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\pej\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\pej\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\pej\Documents\Arduino\libraries -fqbn=arduino:samd:adafruit_circuitplayground_m0 -ide-version=10803 -build-path C:\Users\pej\AppData\Local\Temp\arduino_build_879095 -warnings=none -build-cache C:\Users\pej\AppData\Local\Temp\arduino_cache_371005 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.openocd.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Users\pej\AppData\Local\Temp\arduino_modified_sketch_938454\vu_meter.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\pej\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\pej\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\pej\Documents\Arduino\libraries -fqbn=arduino:samd:adafruit_circuitplayground_m0 -ide-version=10803 -build-path C:\Users\pej\AppData\Local\Temp\arduino_build_879095 -warnings=none -build-cache C:\Users\pej\AppData\Local\Temp\arduino_cache_371005 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arduinoOTA.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.openocd.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -verbose C:\Users\pej\AppData\Local\Temp\arduino_modified_sketch_938454\vu_meter.ino
Using board 'adafruit_circuitplayground_m0' from platform in folder: C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15
Using core 'arduino' from platform in folder: C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15
Detecting libraries used...
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\sketch\vu_meter.ino.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\sketch\vu_meter.ino.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\sketch\vu_meter.ino.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\sketch\vu_meter.ino.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\Adafruit_CircuitPlayground.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_LIS3DH.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_NeoPixel.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Speaker.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\CP_Firmata.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\CPlay_CapacitiveSensor.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\esp8266.c" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\ffft.S" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility" "C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground\utility\talkie.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire\Wire.cpp" -o "nul"
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI\SPI.cpp" -o "nul"
Generating function prototypes...
"C:\Users\pej\AppData\Local\Arduino15\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  -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10803 -DARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS -DARDUINO_ARCH_SAMD  -DCRYSTALLESS -DARDUINO_SAMD_ZERO -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x8018 -DUSBCON '-DUSB_MANUFACTURER="Adafruit"' '-DUSB_PRODUCT="Circuit Playground Express"' "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\variants\circuitplay" "-IC:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire" "-IC:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI" "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\sketch\vu_meter.ino.cpp" -o "C:\Users\pej\AppData\Local\Temp\arduino_build_879095\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Firmata.h:17:0,

                 from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/Adafruit_CircuitPlayground.h:23,

                 from C:\Users\pej\AppData\Local\Temp\arduino_modified_sketch_938454\vu_meter.ino:23:

C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Boards.h:708:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"

 #error "Please edit Boards.h with a hardware abstraction for this board"

  ^

Using library Adafruit_CircuitPlayground at version 1.6.4 in folder: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground
Using library Wire at version 1.0 in folder: C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\Wire
Using library SPI at version 1.0 in folder: C:\Users\pej\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\libraries\SPI
exit status 1
Error compiling for board Adafruit Circuit Playground Express.

pj1138
 
Posts: 6
Joined: Tue Jul 11, 2017 7:39 pm

Re: Errors compiling for Circuit Playground Express

by adafruit_support_rick on Wed Jul 12, 2017 2:51 pm

That really can't happen, unless you have an old version of the Adafruit_CircuitPlayground library. Check to make sure you're up-to-date

The compiler symbol is defined in the compile command:
Code: Select all | TOGGLE FULL SIZE
-D__SAMD21G18A__

That's the thing that CP_Boards.h is looking for, so it will be there. I think you must have an old version of the library

adafruit_support_rick
 
Posts: 34563
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Errors compiling for Circuit Playground Express

by pj1138 on Wed Jul 12, 2017 4:10 pm

So...
If you can point me to the current libraries that would be great, I can't seem to find them.

The version I'm using https://adafruit.github.io/arduino-boar ... index.json in the IDE board manager as per instructions I found on the site.

pj1138
 
Posts: 6
Joined: Tue Jul 11, 2017 7:39 pm

Re: Errors compiling for Circuit Playground Express

by adafruit_support_rick on Thu Jul 13, 2017 8:47 am

You need the latest version of this one:
https://github.com/adafruit/Adafruit_CircuitPlayground

adafruit_support_rick
 
Posts: 34563
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Errors compiling for Circuit Playground Express

by pj1138 on Thu Jul 13, 2017 3:31 pm

Thanks, that did the trick.

I'm trying some examples and having trouble with the slide switch among other things.
It is working fine when I use makecode but CircuitPlayground.slideSwitch() always returns true.

pj1138
 
Posts: 6
Joined: Tue Jul 11, 2017 7:39 pm

Re: Errors compiling for Circuit Playground Express

by adafruit_support_rick on Fri Jul 14, 2017 11:04 am

It works in makecode but not in your sketch? Makes no sense. Are you calling CircuitPlayground.begin(); in your sketch?

adafruit_support_rick
 
Posts: 34563
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Errors compiling for Circuit Playground Express

by pj1138 on Fri Jul 14, 2017 6:59 pm

It's a very simple sketch (below). I figured out which pin on the cpu the switch is connected to and I can see a voltage
change with the make code, but not with the sketch (the pullup setting must not be working).
I know that Adafruit_CircuitPlayground::isExpress() returns true so that much is good. Some functions work and not others, kind of like the pin mapping is off. All of this leads me to believe that my sw install must be messed up.

Are there any reasonable instruction for doing the setup. - e.g. what do I install via the board manager and what to I have to pull from git and manually install

#include <Adafruit_CircuitPlayground.h>

void setup() {
CircuitPlayground.begin();
}


void loop() {
if (CircuitPlayground.slideSwitch()) {
CircuitPlayground.redLED(HIGH);
delay(100);
CircuitPlayground.redLED(LOW);
}
delay(100);
}

pj1138
 
Posts: 6
Joined: Tue Jul 11, 2017 7:39 pm

Re: Errors compiling for Circuit Playground Express

by adafruit2 on Sat Jul 15, 2017 1:22 pm

hiya the Arduino support for CPX is currently in flux (which is why we aren't suggesting it yet) and there's some BSP bugs we're working on with the IDE folks - pins shifted around and also the library changed a bit
for now you can make sure you are using the Adafruit BSP to select Circuit Playground Express
and *manually* install the arduino library - https://github.com/adafruit/Adafruit_CircuitPlayground
dont' use the library manager

adafruit2
Site Admin
 
Posts: 15055
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.