Editing OLA sketches and Libraries for NAU7802 gain

Hello,

Noob with multiple questions (sorry). I have an Artemis Open Log wired to collect force values from a Honeywell FSS015WNSB force sensor via SparkFun Qwiic Scale - NAU7802. Out of the box, it is collecting data OK but it is not using the full scale. I’m calibrating it with a can of coke (385g) and it is maxing it out but it shouldn’t. Per the spec sheet, it should go to 15N or about 1500g. It does record intermediate values below 385 but not above.

Questions: 1) Can adjusting the gain fix this? If so: 2) How do I confirm the gain setting? Or how do I know what library it is pulling from out of the box? 3) To make the change do I need to reinstall the firmware with an edited library? If so, I’m having problems just compiling the code. I downloaded OpenLog v1.3 from Github and tried to ‘verify/compile’ in Arduino 1.8.16. Yet it gives me the error below:

Any help would be appreciated. //joe

OpenLog_Artemis:132:16: error: no matching function for call to ‘arduino::MbedI2C::MbedI2C(int)’

TwoWire qwiic(1); //Will use pads 8/9

^

In file included from C:\Users\joe\OneDrive\Documents\Arduino\libraries\SparkFun_PHT_MS8607_Arduino_Library\src/SparkFun_PHT_MS8607_Arduino_Library.h:51,

from C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\settings.h:2,

from C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:77:

C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1\libraries\Wire\src/Wire.h:24:5: note: candidate: ‘arduino::MbedI2C::MbedI2C(int, int)’

MbedI2C(int sda, int scl);

^~~~~~~

C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1\libraries\Wire\src/Wire.h:24:5: note: candidate expects 2 arguments, 1 provided

OpenLog_Artemis:157:1: error: ‘APM3_RTC’ does not name a type; did you mean ‘AP3_ERR’?

APM3_RTC myRTC; //Create instance of RTC class

^~~~~~~~

AP3_ERR

OpenLog_Artemis:162:1: error: ‘Uart’ does not name a type; did you mean ‘sqrt’?

Uart SerialLog(1, 13, 12); // Declares a Uart object called Serial1 using instance 1 of Apollo3 UART peripherals with RX on pin 13 and TX on pin 12 (note, you specify pins not Apollo3 pads. This uses the variant’s pin map to determine the Apollo3 pad)

^~~~

sqrt

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino: In function ‘void loop()’:

OpenLog_Artemis:325:9: error: ‘SerialLog’ was not declared in this scope

if (SerialLog.available())

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:325:9: note: suggested alternative: ‘Serial1’

if (SerialLog.available())

^~~~~~~~~

Serial1

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino: In function ‘void beginQwiic()’:

OpenLog_Artemis:491:9: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Just to make it really clear what pull-ups are being used, set pullups here.

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino: In function ‘void enableCIPOpullUp()’:

OpenLog_Artemis:548:37: error: ‘AP3_GPIO_DEFAULT_PINCFG’ was not declared in this scope

am_hal_gpio_pincfg_t cipoPinCfg = AP3_GPIO_DEFAULT_PINCFG;

^~~~~~~~~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:548:37: note: suggested alternative: ‘AP3_GPIO_MAX_PADS’

am_hal_gpio_pincfg_t cipoPinCfg = AP3_GPIO_DEFAULT_PINCFG;

^~~~~~~~~~~~~~~~~~~~~~~

AP3_GPIO_MAX_PADS

OpenLog_Artemis:552:24: error: ‘AP3_SPI_IOM’ was not declared in this scope

cipoPinCfg.uIOMnum = AP3_SPI_IOM;

^~~~~~~~~~~

OpenLog_Artemis:554:3: error: ‘padMode’ was not declared in this scope

padMode(MISO, cipoPinCfg, &retval);

^~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:554:3: note: suggested alternative: ‘pinMode’

padMode(MISO, cipoPinCfg, &retval);

^~~~~~~

pinMode

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino: In function ‘void beginSerialLogging()’:

OpenLog_Artemis:659:5: error: ‘SerialLog’ was not declared in this scope

SerialLog.begin(settings.serialLogBaudRate);

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:659:5: note: suggested alternative: ‘Serial1’

SerialLog.begin(settings.serialLogBaudRate);

^~~~~~~~~

Serial1

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\Sensors.ino: In function ‘void getData()’:

Sensors:14:7: error: ‘myRTC’ was not declared in this scope

myRTC.getTime();

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\Sensors.ino:14:7: note: suggested alternative: ‘RTC’

myRTC.getTime();

^~~~~

RTC

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\Sensors.ino: In function ‘void gatherDeviceValues()’:

Sensors:239:19: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(0); //Disable pullups to minimize CRC issues

^~~~~~~~~~

Sensors:241:13: error: ‘SFE_UBLOX_GPS’ was not declared in this scope

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\Sensors.ino:241:13: note: suggested alternative: ‘SFE_UBLOX_GNSS’

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

Sensors:241:28: error: ‘nodeDevice’ was not declared in this scope

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\Sensors.ino:241:28: note: suggested alternative: ‘addDevice’

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

addDevice

Sensors:241:57: error: expected primary-expression before ‘)’ token

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^

Sensors:314:19: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino: In function ‘bool addDevice(deviceType_e, uint8_t, uint8_t, uint8_t)’:

autoDetect:140:30: error: ‘SFE_UBLOX_GPS’ does not name a type; did you mean ‘SFE_UBLOX_GNSS’?

temp->classPtr = new SFE_UBLOX_GPS;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino: In function ‘bool beginQwiicDevices()’:

autoDetect:300:17: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(0); //Disable pullups for u-blox comms.

^~~~~~~~~~

autoDetect:301:11: error: ‘SFE_UBLOX_GPS’ was not declared in this scope

SFE_UBLOX_GPS *tempDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:301:11: note: suggested alternative: ‘SFE_UBLOX_GNSS’

SFE_UBLOX_GPS *tempDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

autoDetect:301:26: error: ‘tempDevice’ was not declared in this scope

SFE_UBLOX_GPS *tempDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:301:26: note: suggested alternative: ‘testDevice’

SFE_UBLOX_GPS *tempDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

testDevice

autoDetect:301:55: error: expected primary-expression before ‘)’ token

SFE_UBLOX_GPS *tempDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^

autoDetect:304:17: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups.

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino: In function ‘void configureDevice(node*)’:

autoDetect:503:15: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(0); //Disable pullups for u-blox comms.

^~~~~~~~~~

autoDetect:505:9: error: ‘SFE_UBLOX_GPS’ was not declared in this scope

SFE_UBLOX_GPS *sensor = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:505:9: note: suggested alternative: ‘SFE_UBLOX_GNSS’

SFE_UBLOX_GPS *sensor = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

autoDetect:505:24: error: ‘sensor’ was not declared in this scope

SFE_UBLOX_GPS *sensor = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:505:24: note: suggested alternative: ‘error’

SFE_UBLOX_GPS *sensor = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~

error

autoDetect:505:49: error: expected primary-expression before ‘)’ token

SFE_UBLOX_GPS *sensor = (SFE_UBLOX_GPS *)temp->classPtr;

^

autoDetect:524:15: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups.

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino: In function ‘deviceType_e testDevice(uint8_t, uint8_t, uint8_t)’:

autoDetect:930:15: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(0); //Disable pullups to minimize CRC issues

^~~~~~~~~~

autoDetect:931:9: error: ‘SFE_UBLOX_GPS’ was not declared in this scope

SFE_UBLOX_GPS sensor;

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:931:9: note: suggested alternative: ‘SFE_UBLOX_GNSS’

SFE_UBLOX_GPS sensor;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

autoDetect:932:49: error: ‘sensor’ was not declared in this scope

if(settings.printDebugMessages == true) sensor.enableDebugging(); // Enable debug messages if required

^~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:932:49: note: suggested alternative: ‘error’

if(settings.printDebugMessages == true) sensor.enableDebugging(); // Enable debug messages if required

^~~~~~

error

autoDetect:933:13: error: ‘sensor’ was not declared in this scope

if (sensor.begin(qwiic, i2cAddress) == true) //Wire port, address

^~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino:933:13: note: suggested alternative: ‘error’

if (sensor.begin(qwiic, i2cAddress) == true) //Wire port, address

^~~~~~

error

autoDetect:935:17: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups to prevent ghosts at 0x43 onwards

^~~~~~~~~~

autoDetect:938:15: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups for normal discovery

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\autoDetect.ino: In function ‘bool setMuxPortState(uint8_t, uint8_t, TwoWire&, int)’:

autoDetect:1237:24: error: call of overloaded ‘write(int)’ is ambiguous

wirePort.write(0x00); // Writing these extra bytes seems key to avoiding the slippery mux problem

^

In file included from C:\Users\joe\OneDrive\Documents\Arduino\libraries\SparkFun_PHT_MS8607_Arduino_Library\src/SparkFun_PHT_MS8607_Arduino_Library.h:51,

from C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\settings.h:2,

from C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\OpenLog_Artemis.ino:77:

C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1\libraries\Wire\src/Wire.h:41:20: note: candidate: ‘virtual size_t arduino::MbedI2C::write(uint8_t)’

virtual size_t write(uint8_t data);

^~~~~

In file included from C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/mbed-bridge/core-api/api/Stream.h:25,

from C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/mbed-bridge/core-api/api/Client.h:22,

from C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/mbed-bridge/core-api/api/ArduinoAPI.h:29,

from C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/mbed-bridge/Arduino.h:17,

from C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/sdk/ArduinoSDK.h:9,

from :

C:\Users\joe\OneDrive\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\2.1.1/cores/arduino/mbed-bridge/core-api/api/Print.h:50:12: note: candidate: ‘size_t arduino::Print::write(const char*)’

size_t write(const char *str) {

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino: In function ‘void powerDown()’:

lowerPower:37:3: error: ‘power_adc_disable’ was not declared in this scope

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:37:3: note: suggested alternative: ‘am_hal_adc_disable’

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

am_hal_adc_disable

lowerPower:40:3: error: ‘SerialLog’ was not declared in this scope

SerialLog.end();

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:40:3: note: suggested alternative: ‘Serial1’

SerialLog.end();

^~~~~~~~~

Serial1

lowerPower:56:15: error: ‘ap3_gpio_pin2pad’ was not declared in this scope

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:56:15: note: suggested alternative: ‘ap3_gpio_pad_t’

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

ap3_gpio_pad_t

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino: In function ‘void goToSleep()’:

lowerPower:152:3: error: ‘power_adc_disable’ was not declared in this scope

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:152:3: note: suggested alternative: ‘am_hal_adc_disable’

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

am_hal_adc_disable

lowerPower:155:3: error: ‘SerialLog’ was not declared in this scope

SerialLog.end();

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:155:3: note: suggested alternative: ‘Serial1’

SerialLog.end();

^~~~~~~~~

Serial1

lowerPower:171:15: error: ‘ap3_gpio_pin2pad’ was not declared in this scope

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:171:15: note: suggested alternative: ‘ap3_gpio_pad_t’

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

ap3_gpio_pad_t

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino: In function ‘void wakeFromSleep()’:

lowerPower:265:3: error: ‘ap3_adc_setup’ was not declared in this scope

ap3_adc_setup();

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino: In function ‘uint64_t rtcMillis()’:

lowerPower:420:3: error: ‘myRTC’ was not declared in this scope

myRTC.getTime();

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\lowerPower.ino:420:3: note: suggested alternative: ‘RTC’

myRTC.getTime();

^~~~~

RTC

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuAttachedDevices.ino: In function ‘bool detectQwiicDevices()’:

menuAttachedDevices:38:9: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Set pullups. (Redundant. beginQwiic has done this too.) If we don’t have pullups, detectQwiicDevices() takes ~900ms to complete. We’ll disable pullups if something is detected.

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuAttachedDevices.ino: In function ‘void getUbloxDateTime(int&, int&, int&, int&, int&, int&, int&, bool&, bool&)’:

menuAttachedDevices:994:17: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(0); //Disable pullups to minimize CRC issues

^~~~~~~~~~

menuAttachedDevices:996:11: error: ‘SFE_UBLOX_GPS’ was not declared in this scope

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuAttachedDevices.ino:996:11: note: suggested alternative: ‘SFE_UBLOX_GNSS’

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~~~~

SFE_UBLOX_GNSS

menuAttachedDevices:996:26: error: ‘nodeDevice’ was not declared in this scope

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuAttachedDevices.ino:996:26: note: suggested alternative: ‘addDevice’

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^~~~~~~~~~

addDevice

menuAttachedDevices:996:55: error: expected primary-expression before ‘)’ token

SFE_UBLOX_GPS *nodeDevice = (SFE_UBLOX_GPS *)temp->classPtr;

^

menuAttachedDevices:1011:17: error: ‘TwoWire’ {aka ‘class arduino::MbedI2C’} has no member named ‘setPullups’

qwiic.setPullups(settings.qwiicBusPullUps); //Re-enable pullups

^~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuSerialLogging.ino: In function ‘void menuSerialLogging()’:

menuSerialLogging:59:11: error: ‘SerialLog’ was not declared in this scope

SerialLog.begin(settings.serialLogBaudRate);

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuSerialLogging.ino:59:11: note: suggested alternative: ‘Serial1’

SerialLog.begin(settings.serialLogBaudRate);

^~~~~~~~~

Serial1

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino: In function ‘void menuTimeStamp()’:

menuTimeStamp:8:5: error: ‘myRTC’ was not declared in this scope

myRTC.getTime();

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:8:5: note: suggested alternative: ‘RTC’

myRTC.getTime();

^~~~~

RTC

menuTimeStamp:96:24: error: ‘yy’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:96:24: note: suggested alternative: ‘yn’

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

yn

menuTimeStamp:96:28: error: ‘mm’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:96:28: note: suggested alternative: ‘tm’

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

tm

menuTimeStamp:96:36: error: ‘h’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^

menuTimeStamp:96:39: error: ‘m’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:96:39: note: suggested alternative: ‘tm’

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^

tm

menuTimeStamp:96:42: error: ‘s’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:96:42: note: suggested alternative: ‘sd’

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^

sd

menuTimeStamp:96:45: error: ‘ms’ was not declared in this scope

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:96:45: note: suggested alternative: ‘msg’

getGPSDateTime(yy, mm, dd, h, m, s, ms, dateValid, timeValid); // Get the GPS date and time, corrected for localUTCOffset

^~

msg

menuTimeStamp:125:9: error: ‘yy’ was not declared in this scope

yy = getNumber(menuTimeout); //Timeout after x seconds

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:125:9: note: suggested alternative: ‘yn’

yy = getNumber(menuTimeout); //Timeout after x seconds

^~

yn

menuTimeStamp:129:9: error: ‘mm’ was not declared in this scope

mm = getNumber(menuTimeout); //Timeout after x seconds

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:129:9: note: suggested alternative: ‘tm’

mm = getNumber(menuTimeout); //Timeout after x seconds

^~

tm

menuTimeStamp:134:23: error: ‘h’ was not declared in this scope

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^

menuTimeStamp:134:26: error: ‘m’ was not declared in this scope

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:134:26: note: suggested alternative: ‘tm’

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^

tm

menuTimeStamp:134:29: error: ‘s’ was not declared in this scope

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:134:29: note: suggested alternative: ‘sd’

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^

sd

menuTimeStamp:152:9: error: ‘h’ was not declared in this scope

h = getNumber(menuTimeout); //Timeout after x seconds

^

menuTimeStamp:155:9: error: ‘m’ was not declared in this scope

m = getNumber(menuTimeout); //Timeout after x seconds

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:155:9: note: suggested alternative: ‘tm’

m = getNumber(menuTimeout); //Timeout after x seconds

^

tm

menuTimeStamp:158:9: error: ‘s’ was not declared in this scope

s = getNumber(menuTimeout); //Timeout after x seconds

^

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:158:9: note: suggested alternative: ‘sd’

s = getNumber(menuTimeout); //Timeout after x seconds

^

sd

menuTimeStamp:160:39: error: ‘mm’ was not declared in this scope

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:160:39: note: suggested alternative: ‘tm’

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^~

tm

menuTimeStamp:160:43: error: ‘yy’ was not declared in this scope

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\menuTimeStamp.ino:160:43: note: suggested alternative: ‘yn’

myRTC.setTime(h, m, s, 0, dd, mm, yy); //Manually set RTC

^~

yn

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino: In function ‘void productionTest()’:

productionTest:101:3: error: ‘SerialLog’ was not declared in this scope

SerialLog.begin(115200); // Begin the serial port using the TX and RX breakout pins

^~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino:101:3: note: suggested alternative: ‘Serial1’

SerialLog.begin(115200); // Begin the serial port using the TX and RX breakout pins

^~~~~~~~~

Serial1

productionTest:283:9: error: ‘myRTC’ was not declared in this scope

myRTC.getTime(); // Read the RTC

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino:283:9: note: suggested alternative: ‘RTC’

myRTC.getTime(); // Read the RTC

^~~~~

RTC

productionTest:292:9: error: ‘power_adc_disable’ was not declared in this scope

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino:292:9: note: suggested alternative: ‘am_hal_adc_disable’

power_adc_disable(); //Power down ADC. It it started by default before setup().

^~~~~~~~~~~~~~~~~

am_hal_adc_disable

productionTest:327:9: error: ‘ap3_adc_setup’ was not declared in this scope

ap3_adc_setup();

^~~~~~~~~~~~~

productionTest:430:9: error: ‘myRTC’ was not declared in this scope

myRTC.getTime(); // Read the RTC

^~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino:430:9: note: suggested alternative: ‘RTC’

myRTC.getTime(); // Read the RTC

^~~~~

RTC

productionTest:535:21: error: ‘ap3_gpio_pin2pad’ was not declared in this scope

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

C:\Users\joe\Downloads\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\OpenLog_Artemis-8d410f238505b564516e7f39e68a30e240c6a12e\Firmware\OpenLog_Artemis\productionTest.ino:535:21: note: suggested alternative: ‘ap3_gpio_pad_t’

if ((x != ap3_gpio_pin2pad(PIN_POWER_LOSS)) &&

^~~~~~~~~~~~~~~~

ap3_gpio_pad_t

exit status 1

no matching function for call to ‘arduino::MbedI2C::MbedI2C(int)’