SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
User avatar
By Franklin321123
#234073
Has anyone had issues with code not compiling in the arduino IDE for the artemis module specifically? Strangely, the same code compiles just fine for the RedBoard. Error readout attached. I've replaced the username in the filepath with ~. It seems to take issue with the SPI library.
Code: Select all
[/In file included from /Users/~/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_BusIO_Register.h:10,
                 from /Users/~/Documents/Arduino/libraries/Adafruit_FXOS8700/Adafruit_FXOS8700.h:24,
                 from /Users/~/Documents/Arduino/libraries/Adafruit_FXOS8700/examples/sensorapi/sensorapi.ino:1:
/Users/~/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:70:72: error: 'SPI' was not declared in this scope
                      uint8_t dataMode = SPI_MODE0, SPIClass *theSPI = &SPI);
                                                                        ^~~
/Users/~/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:70:72: note: suggested alternative:
In file included from /Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/cores/mbed-os/mbed.h:65,
                 from /Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/cores/arduino/mbed-bridge/Arduino.h:14,
                 from /Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/cores/arduino/sdk/ArduinoSDK.h:9,
                 from <command-line>:
/Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/cores/mbed-os/drivers/SPI.h:98:7: note:   'mbed::SPI'
 class SPI : private NonCopyable<SPI> {
       ^~~
Using library Adafruit_FXOS8700 at version 2.2.0 in folder: /Users/~/Documents/Arduino/libraries/Adafruit_FXOS8700 
Using library Adafruit_BusIO at version 1.10.0 in folder: /Users/~/Documents/Arduino/libraries/Adafruit_BusIO 
Using library Wire at version 2.0.0 in folder: /Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/libraries/Wire 
Using library SPI at version 2.0.0 in folder: /Users/~/Documents/MATLAB/SupportPackages/R2020b/3P.instrset/arduinoide.instrset/idepkgs/packages/SparkFun/hardware/apollo3/2.2.1/libraries/SPI 
Using library Adafruit_Unified_Sensor at version 1.1.5 in folder: /Users/~/Documents/Arduino/libraries/Adafruit_Unified_Sensor 
exit status 1
Error compiling for board Artemis Module.]

Thank you!
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum