Artemis Arduino not compiling

Has anyone successfully compiled the latest Artemis OLA from the GitHub.

Running Arduino IDE with what I believe are all the correct libraries, I get a stack of errors.

In file included from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\OpenLog_Artemis.ino:278:
D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Qwiic_Button_and_Qwiic_Switch_Library\src/SparkFun_Qwiic_Button.h:29: warning: "DEFAULT_ADDRESS" redefined
 #define DEFAULT_ADDRESS 0x6F //default I2C address of the button
 
In file included from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\OpenLog_Artemis.ino:273:
D:\Users\Steven\Documents\Arduino\libraries\SparkFun_MicroPressure_Library\src/SparkFun_MicroPressure.h:9: note: this is the location of the previous definition
 #define DEFAULT_ADDRESS 0x18
 
D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\zmodem_sz.cpp:177: warning: "zperr" redefined
 #define zperr(a, ... )
 
In file included from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\zmodem_sz.cpp:66:
D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\zmodem_zm.h:49: note: this is the location of the previous definition
 #define zperr(...)
 
In file included from D:\Users\Steven\Documents\Arduino\libraries\SparkFun_PHT_MS8607_Arduino_Library\src/SparkFun_PHT_MS8607_Arduino_Library.h:51,
                 from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\settings.h:2,
                 from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\OpenLog_Artemis.ino:130:
C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\Wire\src/Wire.h:36:20: error: conflicting return type specified for 'virtual size_t arduino::MbedI2C::requestFrom(uint8_t, size_t, bool)'
     virtual size_t requestFrom(uint8_t address, size_t len, bool stopBit);
                    ^~~~~~~~~~~
In file included from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/core-api/api/ArduinoAPI.h:30,
                 from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/Arduino.h:17,
                 from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/sdk/ArduinoSDK.h:9,
                 from <command-line>:
C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/core-api/api/HardwareI2C.h:39:21: note: overridden function is 'virtual uint8_t arduino::HardwareI2C::requestFrom(uint8_t, size_t, bool)'
     virtual uint8_t requestFrom(uint8_t address, size_t len, bool stopBit) = 0;
                     ^~~~~~~~~~~
In file included from D:\Users\Steven\Documents\Arduino\libraries\SparkFun_PHT_MS8607_Arduino_Library\src/SparkFun_PHT_MS8607_Arduino_Library.h:51,
                 from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\settings.h:2,
                 from D:\Users\Steven\Documents\Arduino\Sketches\GPS_DataLogger\OpenLog_Artemis\OpenLog_Artemis.ino:130:
C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\Wire\src/Wire.h:37:20: error: conflicting return type specified for 'virtual size_t arduino::MbedI2C::requestFrom(uint8_t, size_t)'
     virtual size_t requestFrom(uint8_t address, size_t len);
                    ^~~~~~~~~~~
In file included from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/core-api/api/ArduinoAPI.h:30,
                 from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/Arduino.h:17,
                 from C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/sdk/ArduinoSDK.h:9,
                 from <command-line>:
C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0/cores/arduino/mbed-bridge/core-api/api/HardwareI2C.h:40:21: note: overridden function is 'virtual uint8_t arduino::HardwareI2C::requestFrom(uint8_t, size_t)'
     virtual uint8_t requestFrom(uint8_t address, size_t len) = 0;
                     ^~~~~~~~~~~
Using library SparkFun_PHT_MS8607_Arduino_Library at version 1.0.3 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_PHT_MS8607_Arduino_Library 
Using library Wire at version 2.0.0 in folder: C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\Wire 
Using library EEPROM at version 2.0.0 in folder: C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\EEPROM 
Using library SPI at version 2.0.0 in folder: C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\SPI 
Using library SdFat at version 2.1.2 in folder: D:\Users\Steven\Documents\Arduino\libraries\SdFat 
Using library RTC at version 2.0.0 in folder: C:\Users\Steven\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.1.0\libraries\RTC 
Using library SparkFun_9DoF_IMU_Breakout_-_ICM_20948_-_Arduino_Library at version 1.2.9 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_9DoF_IMU_Breakout_-_ICM_20948_-_Arduino_Library 
Using library SparkFun_I2C_Mux_Arduino_Library at version 1.0.3 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_I2C_Mux_Arduino_Library 
Using library SparkFun_CCS811_Arduino_Library at version 2.0.1 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_CCS811_Arduino_Library 
Using library SparkFun_VL53L1X_4m_Laser_Distance_Sensor at version 1.2.11 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_VL53L1X_4m_Laser_Distance_Sensor 
Using library SparkFun_BME280 at version 2.0.9 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_BME280 
Using library SparkFun_LPS25HB_Pressure_Sensor_Library at version 1.1.0 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_LPS25HB_Pressure_Sensor_Library 
Using library SparkFun_VEML6075_Arduino_Library at version 1.1.4 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_VEML6075_Arduino_Library 
Using library SparkFun_MCP9600_Thermocouple_Library at version 1.0.4 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_MCP9600_Thermocouple_Library 
Using library SparkFun_SGP30_Arduino_Library at version 1.0.5 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_SGP30_Arduino_Library 
Using library SparkFun_VCNL4040_Proximity_Sensor_Library at version 1.0.3 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_VCNL4040_Proximity_Sensor_Library 
Using library SparkFun_MS5637_Barometric_Pressure_Library at version 1.0.1 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_MS5637_Barometric_Pressure_Library 
Using library SparkFun_High_Precision_Temperature_Sensor_TMP117_Qwiic at version 1.2.4 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_High_Precision_Temperature_Sensor_TMP117_Qwiic 
Using library SparkFun_u-blox_GNSS_Arduino_Library at version 2.2.0 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_u-blox_GNSS_Arduino_Library 
Using library SparkFun_Qwiic_Scale_NAU7802_Arduino_Library at version 1.0.4 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Qwiic_Scale_NAU7802_Arduino_Library 
Using library SparkFun_SCD30_Arduino_Library at version 1.0.17 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_SCD30_Arduino_Library 
Using library SparkFun_Qwiic_Humidity_AHT20 at version 1.0.2 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Qwiic_Humidity_AHT20 
Using library SparkFun_SHTC3_Humidity_and_Temperature_Sensor_Library at version 1.1.4 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_SHTC3_Humidity_and_Temperature_Sensor_Library 
Using library SparkFun_ADS122C04_ADC_Arduino_Library at version 1.0.2 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_ADS122C04_ADC_Arduino_Library 
Using library SparkFun_MicroPressure_Library at version 1.0.1 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_MicroPressure_Library 
Using library SparkFun_Particle_Sensor_Panasonic_SN-GCJA5 at version 1.0.1 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Particle_Sensor_Panasonic_SN-GCJA5 
Using library SparkFun_SGP40_Arduino_Library at version 1.0.3 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_SGP40_Arduino_Library 
Using library SparkFun_SDP3x_Arduino_Library at version 1.0.2 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_SDP3x_Arduino_Library 
Using library BlueRobotics_MS5837 at version 1.1.1 in folder: D:\Users\Steven\Documents\Arduino\libraries\BlueRobotics_MS5837 
Using library SparkFun_Qwiic_Button_and_Qwiic_Switch_Library at version 2.0.5 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Qwiic_Button_and_Qwiic_Switch_Library 
Using library SparkFun_Bio_Sensor_Hub_Library at version 1.0.5 in folder: D:\Users\Steven\Documents\Arduino\libraries\SparkFun_Bio_Sensor_Hub_Library 
exit status 1
Error compiling for board RedBoard Artemis ATP.

Any suggestions please?

Thank you for taking the time to reply, it’s really bugging me.

Unfortunately the output was huge and exceeded the limits of this forum, even attaching as a .txt file.

I have had to zip it and then attach if thats OK?

Many thanks for any help offered :slight_smile:

artemis compile error.zip (10.4 KB)

Anyone able to offer advice on this please. Really confusing why the code will not compile when it is direct from the source.

Many thanks :slight_smile:

The warnings about the redefinitions of the ‘DEFAULT_ADDRESS’ and ‘zperr’ can be neglected. for now that is more cosmetic. The real error is in the “error: conflicting return type specified”.

You should update your Sparkfun library from 2.1.0 (where this problem exists) to 2.2.0. Also because 2.2.0 is more up to date.

To do that " tools → boards → boards manager. filter on apollo3 and update version to 2.2.0.