Stumped by Cloud Flash and "Error: Command failed with exit code 1:"

I’ve encountered problems with my students’ projects occasionally where they include multiple libraries, and then they get nondescript flash errors. Sometimes changing the order of the includes or editing the library helps (assuming there is a code error indicated).

However, this code below has me stumped. The project uses an Argon OS 3.3.0 and cloud flashing is done via Workbench on a Mac. The code flashes properly with all the includes and omitting everything in setup() related to MAX30105 particleSensor. Once the MAX30105 object is included, though, the code generates an the error "Error: Command failed with exit code 1:" Unfortunately, there is no indication of what the issue with the library is. I would love anyone’s insight into how to try to track down what could be causing this.

Thanks!

Here is the code along with the error below it.

Code

#include <blynk.h>
#include "MAX30105.h"
#include "heartRate.h"

MAX30105 particleSensor;

#include "PietteTech_DHT.h" 

#define DHTTYPE  DHT11       // Sensor type DHT11/21/22/AM2301/AM2302
#define DHTPIN   D2         // Digital pin for communications

#include "JsonParserGeneratorRK.h"

PietteTech_DHT DHT(DHTPIN, DHTTYPE);

#define BLYNK_TEMPLATE_ID "xxxxxxxx"
#define BLYNK_DEVICE_NAME "xxxxxxx"
#define BLYNK_AUTH_TOKEN "xxxxxxxxxx"

#define BLYNK_PRINT Serial 
#define BLYNK_IP IPAddress(64, 225, 16, 22)  // https://ny3.blynk.cloud/ – New York

const byte RATE_SIZE = 4;  // Increase this for more averaging. 4 is good.
byte rates[RATE_SIZE];     // Array of heart rates
byte rateSpot = 0;
long lastBeat = 0;  // Time at which the last beat occurred

float beatsPerMinute;
int beatAvg;

int MAX_RANGE_CM = 100;    
int MIN_RANGE_CM = 0;

const int PIN_TRIGGER = D6;
const int PIN_ECHO = D5;

const int PIN_SPEAKER = D2;

const int PIN_BUTTON = D3;
int lastButton = HIGH;
int currentButton = LOW;


enum Cycle { VibeOn, VibeOff };
Cycle currentCycle = VibeOn;

enum State { FAR, MID, CLOSE, WARNING };
State currentState = FAR;

unsigned long prevMillis = 0;
unsigned long MILLIS_DELAY = 500;

unsigned long prevMicroMillis = 0;
unsigned long MICRO_DELAY_A = 0.002;
unsigned long MICRO_DELAY_B = 0.012;

unsigned long prevMillisIS_SONAR = 0;
unsigned long IS_DELAY_SONAR = 30000;

unsigned long prevMillisIS_BPM = 0;
unsigned long IS_DELAY_BPM = 30000;

void setup() {

    Serial.begin(115200);  
    pinMode(PIN_ECHO, INPUT);
    pinMode(PIN_TRIGGER, OUTPUT);
    dht.begin();
    pinMode(PIN_SPEAKER, OUTPUT);
    pinMode(PIN_BUTTON, INPUT);
    pinMode(MOTOR_PIN, OUTPUT);
    Particle.subscribe("hook-response/a13", myHandler, MY_DEVICES);

    if (!particleSensor.begin(
      
            Wire, I2C_SPEED_FAST))  // Use default I2C port, 400kHz speed
    {
        Serial.println("MAX30105 was not found. Please check wiring/power. ");
        while (1)
            ;
    }
    Serial.println(
        "Place your index finger on the sensor with steady pressure.");

    particleSensor.setup();  // Configure sensor with default settings
    particleSensor.setPulseAmplitudeRed(
        0x0A);  // Turn Red LED to low to indicate sensor is running
    particleSensor.setPulseAmplitudeGreen(0);  // Turn off Green LED

}

void loop() {


}

Full error output

Targeting version: 3.3.0

Including:
    lib/blynk/src/Adapters/BlynkSerial.h
    lib/blynk/src/blynk.h
    lib/blynk/src/Blynk/BlynkApi.h
    lib/blynk/src/Blynk/BlynkConfig.h
    lib/blynk/src/Blynk/BlynkConsole.h
    lib/blynk/src/Blynk/BlynkDebug.h
    lib/blynk/src/Blynk/BlynkDetectDevice.h
    lib/blynk/src/Blynk/BlynkEveryN.h
    lib/blynk/src/Blynk/BlynkHandlers.h
    lib/blynk/src/Blynk/BlynkParam.h
    lib/blynk/src/Blynk/BlynkProtocol.h
    lib/blynk/src/Blynk/BlynkProtocolDefs.h
    lib/blynk/src/Blynk/BlynkTemplates.h
    lib/blynk/src/Blynk/BlynkTimer.h
    lib/blynk/src/Blynk/BlynkWidgetBase.h
    lib/blynk/src/BlynkApiParticle.h
    lib/blynk/src/BlynkParticle.h
    lib/blynk/src/BlynkSimpleParticle.h
    lib/blynk/src/BlynkSimpleSerialBLE.h
    lib/blynk/src/BlynkSimpleStream.h
    lib/blynk/src/BlynkWidgets.h
    lib/blynk/src/utility/BlynkDateTime.h
    lib/blynk/src/utility/BlynkUtility.h
    lib/blynk/src/WidgetBridge.h
    lib/blynk/src/WidgetGPS.h
    lib/blynk/src/WidgetLCD.h
    lib/blynk/src/WidgetLED.h
    lib/blynk/src/WidgetMap.h
    lib/blynk/src/WidgetTable.h
    lib/blynk/src/WidgetTerminal.h
    lib/blynk/src/WidgetTimeInput.h
    lib/Haptic/src/Sparkfun_DRV2605L.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_print.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_printable.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_string.h
    lib/JsonParserGeneratorRK/src/JsonParserGeneratorRK.h
    lib/PietteTech_DHT/src/PietteTech_DHT.h
    lib/PietteTech_DHT/src/PietteTech_DHT/PietteTech_DHT.h
    lib/SparkFun-MAX3010x/src/heartRate.h
    lib/SparkFun-MAX3010x/src/MAX30105.h
    lib/SparkFun-MAX3010x/src/spo2_algorithm.h
    lib/blynk/examples/01_Particle/01_Particle.ino
    lib/blynk/examples/02_Particle_Electron/02_Particle_Electron.ino
    lib/blynk/examples/03_Bluz_Direct/03_Bluz_Direct.ino
    lib/Haptic/examples/SFE_HMD_Audio2Vibe/SFE_HMD_Audio2Vibe.ino
    lib/Haptic/examples/SFE_HMD_PWM/SFE_HMD_PWM.ino
    lib/PietteTech_DHT/examples/DHT_2sensor/DHT_2sensor.ino
    lib/PietteTech_DHT/examples/DHT_example/DHT_example.ino
    lib/PietteTech_DHT/examples/DHT_simple/DHT_simple.ino
    lib/SparkFun-MAX3010x/examples/Example1_Basic_Readings/Example1_Basic_Readings.ino
    lib/SparkFun-MAX3010x/examples/Example2_Presence_Sensing/Example2_Presence_Sensing.ino
    lib/SparkFun-MAX3010x/examples/Example3_Temperature_Sense/Example3_Temperature_Sense.ino
    lib/SparkFun-MAX3010x/examples/Example4_HeartBeat_Plotter/Example4_HeartBeat_Plotter.ino
    lib/SparkFun-MAX3010x/examples/Example5_HeartRate/Example5_HeartRate.ino
    lib/SparkFun-MAX3010x/examples/Example5_HeartRate/License.ino
    lib/SparkFun-MAX3010x/examples/Example6_FIFO_Readings/Example6_FIFO_Readings.ino
    lib/SparkFun-MAX3010x/examples/Example7_Basic_Readings_Interrupts/Example7_Basic_Readings_Interrupts.ino
    lib/SparkFun-MAX3010x/examples/Example8_SPO2/Example8_SPO2.ino
    lib/SparkFun-MAX3010x/examples/Example8_SPO2/License.ino
    lib/SparkFun-MAX3010x/examples/Example9_RateTesting/Example9_RateTesting.ino
    src/libraries_test.ino
    lib/blynk/src/blynk.cpp
    lib/blynk/src/utility/BlynkDebug.cpp
    lib/blynk/src/utility/BlynkHandlers.cpp
    lib/blynk/src/utility/BlynkTimer.cpp
    lib/Haptic/src/SparkFun_DRV2605L.cpp
    lib/JsonParserGeneratorRK/examples/1-parser/1-parser-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/examples/2-generator/2-generator-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/examples/3-subscription/3-subscription-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/src/JsonParserGeneratorRK.cpp
    lib/PietteTech_DHT/src/PietteTech_DHT.cpp
    lib/SparkFun-MAX3010x/src/heartRate.cpp
    lib/SparkFun-MAX3010x/src/MAX30105.cpp
    lib/SparkFun-MAX3010x/src/spo2_algorithm.cpp
    project.properties

attempting to flash firmware to your device xaebs

Processing  lib/Haptic/examples/SFE_HMD_Audio2Vibe/SFE_HMD_Audio2Vibe.ino
Processing  lib/Haptic/examples/SFE_HMD_PWM/SFE_HMD_PWM.ino
Processing  lib/PietteTech_DHT/examples/DHT_2sensor/DHT_2sensor.ino
Processing  lib/PietteTech_DHT/examples/DHT_example/DHT_example.ino
Processing  lib/PietteTech_DHT/examples/DHT_simple/DHT_simple.ino
Processing  lib/SparkFun-MAX3010x/examples/Example1_Basic_Readings/Example1_Basic_Readings.ino
Processing  lib/SparkFun-MAX3010x/examples/Example2_Presence_Sensing/Example2_Presence_Sensing.ino
Processing  lib/SparkFun-MAX3010x/examples/Example3_Temperature_Sense/Example3_Temperature_Sense.ino
Processing  lib/SparkFun-MAX3010x/examples/Example4_HeartBeat_Plotter/Example4_HeartBeat_Plotter.ino
Processing  lib/SparkFun-MAX3010x/examples/Example5_HeartRate/Example5_HeartRate.ino
Processing  lib/SparkFun-MAX3010x/examples/Example5_HeartRate/License.ino
Processing  lib/SparkFun-MAX3010x/examples/Example6_FIFO_Readings/Example6_FIFO_Readings.ino
Processing  lib/SparkFun-MAX3010x/examples/Example7_Basic_Readings_Interrupts/Example7_Basic_Readings_Interrupts.ino
Processing  lib/SparkFun-MAX3010x/examples/Example8_SPO2/Example8_SPO2.ino
Processing  lib/SparkFun-MAX3010x/examples/Example8_SPO2/License.ino
Processing  lib/SparkFun-MAX3010x/examples/Example9_RateTesting/Example9_RateTesting.ino
Processing  lib/blynk/examples/01_Particle/01_Particle.ino
Processing  lib/blynk/examples/02_Particle_Electron/02_Particle_Electron.ino
Processing  lib/blynk/examples/03_Bluz_Direct/03_Bluz_Direct.ino
Processing  src/libraries_test.ino
make -C ../modules/argon/user-part all
make[1]: Entering directory `/firmware/modules/argon/user-part'

mkdir -p target/
make -f ../../../modules/shared/nRF52840/build_linker_script.mk PREBUILD=1
make[2]: Entering directory `/firmware/modules/argon/user-part'
Creating target/platform_user_ram.ld ...
make[2]: Leaving directory `/firmware/modules/argon/user-part'

make -C ../../../user 
make[2]: Entering directory `/firmware/user'
Building cpp file: src/libraries_test.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-12-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=12 -DPLATFORM_NAME=argon -DPLATFORM_GEN=3 -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00C -DUSBD_PID_CDC=0xC00C -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=12 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=3.3.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/argon -I../hal/network/lwip/esp32 -I../hal/network/ncp/wifi -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal -I../hal/src/nRF52840/posix -I../hal/network -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../hal/network/util -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../third_party/miniz/miniz -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/PietteTech_DHT/src -Ilib/blynk/src -Ilib/SparkFun-MAX3010x/src -Ilib/JsonParserGeneratorRK/src -Ilib/Haptic/src -I. -MD -MP -MF ../build/target/user/platform-12-msrc/libraries_test.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -fmessage-length=0 -Wno-error=deprecated-declarations -Wno-error=unused-parameter -Wimplicit-fallthrough=2 -Wno-expansion-to-defined -Wno-cast-function-type -Wno-unused-parameter -Wno-error=type-limits -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Werror=return-type -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=ESP32 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x40000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xB4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=2 -DMODULE_DEPENDENCY=4,1,3301 -DMODULE_DEPENDENCY2=0,0,0 -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -flto -ffat-lto-objects -DPARTICLE_COMPILE_LTO_FAT -fno-use-cxa-atexit -std=gnu++17 -c -o ../build/target/user/platform-12
Error: Command failed with exit code 1: /Users/javiercalleja/.vscode/extensions/particle.particle-vscode-core-1.14.9/src/cli/bin/darwin/amd64/particle cloud flash xaebs --target 3.3.0 --no-update-check
Targeting version: 3.3.0

Including:
    lib/blynk/src/Adapters/BlynkSerial.h
    lib/blynk/src/blynk.h
    lib/blynk/src/Blynk/BlynkApi.h
    lib/blynk/src/Blynk/BlynkConfig.h
    lib/blynk/src/Blynk/BlynkConsole.h
    lib/blynk/src/Blynk/BlynkDebug.h
    lib/blynk/src/Blynk/BlynkDetectDevice.h
    lib/blynk/src/Blynk/BlynkEveryN.h
    lib/blynk/src/Blynk/BlynkHandlers.h
    lib/blynk/src/Blynk/BlynkParam.h
    lib/blynk/src/Blynk/BlynkProtocol.h
    lib/blynk/src/Blynk/BlynkProtocolDefs.h
    lib/blynk/src/Blynk/BlynkTemplates.h
    lib/blynk/src/Blynk/BlynkTimer.h
    lib/blynk/src/Blynk/BlynkWidgetBase.h
    lib/blynk/src/BlynkApiParticle.h
    lib/blynk/src/BlynkParticle.h
    lib/blynk/src/BlynkSimpleParticle.h
    lib/blynk/src/BlynkSimpleSerialBLE.h
    lib/blynk/src/BlynkSimpleStream.h
    lib/blynk/src/BlynkWidgets.h
    lib/blynk/src/utility/BlynkDateTime.h
    lib/blynk/src/utility/BlynkUtility.h
    lib/blynk/src/WidgetBridge.h
    lib/blynk/src/WidgetGPS.h
    lib/blynk/src/WidgetLCD.h
    lib/blynk/src/WidgetLED.h
    lib/blynk/src/WidgetMap.h
    lib/blynk/src/WidgetTable.h
    lib/blynk/src/WidgetTerminal.h
    lib/blynk/src/WidgetTimeInput.h
    lib/Haptic/src/Sparkfun_DRV2605L.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_print.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_printable.h
    lib/JsonParserGeneratorRK/docs/src/spark_wiring_string.h
    lib/JsonParserGeneratorRK/src/JsonParserGeneratorRK.h
    lib/PietteTech_DHT/src/PietteTech_DHT.h
    lib/PietteTech_DHT/src/PietteTech_DHT/PietteTech_DHT.h
    lib/SparkFun-MAX3010x/src/heartRate.h
    lib/SparkFun-MAX3010x/src/MAX30105.h
    lib/SparkFun-MAX3010x/src/spo2_algorithm.h
    lib/blynk/examples/01_Particle/01_Particle.ino
    lib/blynk/examples/02_Particle_Electron/02_Particle_Electron.ino
    lib/blynk/examples/03_Bluz_Direct/03_Bluz_Direct.ino
    lib/Haptic/examples/SFE_HMD_Audio2Vibe/SFE_HMD_Audio2Vibe.ino
    lib/Haptic/examples/SFE_HMD_PWM/SFE_HMD_PWM.ino
    lib/PietteTech_DHT/examples/DHT_2sensor/DHT_2sensor.ino
    lib/PietteTech_DHT/examples/DHT_example/DHT_example.ino
    lib/PietteTech_DHT/examples/DHT_simple/DHT_simple.ino
    lib/SparkFun-MAX3010x/examples/Example1_Basic_Readings/Example1_Basic_Readings.ino
    lib/SparkFun-MAX3010x/examples/Example2_Presence_Sensing/Example2_Presence_Sensing.ino
    lib/SparkFun-MAX3010x/examples/Example3_Temperature_Sense/Example3_Temperature_Sense.ino
    lib/SparkFun-MAX3010x/examples/Example4_HeartBeat_Plotter/Example4_HeartBeat_Plotter.ino
    lib/SparkFun-MAX3010x/examples/Example5_HeartRate/Example5_HeartRate.ino
    lib/SparkFun-MAX3010x/examples/Example5_HeartRate/License.ino
    lib/SparkFun-MAX3010x/examples/Example6_FIFO_Readings/Example6_FIFO_Readings.ino
    lib/SparkFun-MAX3010x/examples/Example7_Basic_Readings_Interrupts/Example7_Basic_Readings_Interrupts.ino
    lib/SparkFun-MAX3010x/examples/Example8_SPO2/Example8_SPO2.ino
    lib/SparkFun-MAX3010x/examples/Example8_SPO2/License.ino
    lib/SparkFun-MAX3010x/examples/Example9_RateTesting/Example9_RateTesting.ino
    src/libraries_test.ino
    lib/blynk/src/blynk.cpp
    lib/blynk/src/utility/BlynkDebug.cpp
    lib/blynk/src/utility/BlynkHandlers.cpp
    lib/blynk/src/utility/BlynkTimer.cpp
    lib/Haptic/src/SparkFun_DRV2605L.cpp
    lib/JsonParserGeneratorRK/examples/1-parser/1-parser-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/examples/2-generator/2-generator-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/examples/3-subscription/3-subscription-JsonParserGeneratorRK.cpp
    lib/JsonParserGeneratorRK/src/JsonParserGeneratorRK.cpp
    lib/PietteTech_DHT/src/PietteTech_DHT.cpp
    lib/SparkFun-MAX3010x/src/heartRate.cpp
    lib/SparkFun-MAX3010x/src/MAX30105.cpp
    lib/SparkFun-MAX3010x/src/spo2_algorithm.cpp
    project.properties

attempting to flash firmware to your device xaebs

Processing  lib/Haptic/examples/SFE_HMD_Audio2Vibe/SFE_HMD_Audio2Vibe.ino
Processing  lib/Haptic/examples/SFE_HMD_PWM/SFE_HMD_PWM.ino
Processing  lib/PietteTech_DHT/examples/DHT_2sensor/DHT_2sensor.ino
Processing  lib/PietteTech_DHT/examples/DHT_example/DHT_example.ino
Processing  lib/PietteTech_DHT/examples/DHT_simple/DHT_simple.ino
Processing  lib/SparkFun-MAX3010x/examples/Example1_Basic_Readings/Example1_Basic_Readings.ino
Processing  lib/SparkFun-MAX3010x/examples/Example2_Presence_Sensing/Example2_Presence_Sensing.ino
Processing  lib/SparkFun-MAX3010x/examples/Example3_Temperature_Sense/Example3_Temperature_Sense.ino
Processing  lib/SparkFun-MAX3010x/examples/Example4_HeartBeat_Plotter/Example4_HeartBeat_Plotter.ino
Processing  lib/SparkFun-MAX3010x/examples/Example5_HeartRate/Example5_HeartRate.ino
Processing  lib/SparkFun-MAX3010x/examples/Example5_HeartRate/License.ino
Processing  lib/SparkFun-MAX3010x/examples/Example6_FIFO_Readings/Example6_FIFO_Readings.ino
Processing  lib/SparkFun-MAX3010x/examples/Example7_Basic_Readings_Interrupts/Example7_Basic_Readings_Interrupts.ino
Processing  lib/SparkFun-MAX3010x/examples/Example8_SPO2/Example8_SPO2.ino
Processing  lib/SparkFun-MAX3010x/examples/Example8_SPO2/License.ino
Processing  lib/SparkFun-MAX3010x/examples/Example9_RateTesting/Example9_RateTesting.ino
Processing  lib/blynk/examples/01_Particle/01_Particle.ino
Processing  lib/blynk/examples/02_Particle_Electron/02_Particle_Electron.ino
Processing  lib/blynk/examples/03_Bluz_Direct/03_Bluz_Direct.ino
Processing  src/libraries_test.ino
make -C ../modules/argon/user-part all
make[1]: Entering directory `/firmware/modules/argon/user-part'

mkdir -p target/
make -f ../../../modules/shared/nRF52840/build_linker_script.mk PREBUILD=1
make[2]: Entering directory `/firmware/modules/argon/user-part'
Creating target/platform_user_ram.ld ...
make[2]: Leaving directory `/firmware/modules/argon/user-part'

make -C ../../../user 
make[2]: Entering directory `/firmware/user'
Building cpp file: src/libraries_test.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-12-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=12 -DPLATFORM_NAME=argon -DPLATFORM_GEN=3 -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00C -DUSBD_PID_CDC=0xC00C -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=12 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=3.3.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/argon -I../hal/network/lwip/esp32 -I../hal/network/ncp/wifi -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal -I../hal/src/nRF52840/posix -I../hal/network -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../hal/network/util -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../third_party/miniz/miniz -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/PietteTech_DHT/src -Ilib/blynk/src -Ilib/SparkFun-MAX3010x/src -Ilib/JsonParserGeneratorRK/src -Ilib/Haptic/src -I. -MD -MP -MF ../build/target/user/platform-12-msrc/libraries_test.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -fmessage-length=0 -Wno-error=deprecated-declarations -Wno-error=unused-parameter -Wimplicit-fallthrough=2 -Wno-expansion-to-defined -Wno-cast-function-type -Wno-unused-parameter -Wno-error=type-limits -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Werror=return-type -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=ESP32 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x40000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xB4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=2 -DMODULE_DEPENDENCY=4,1,3301 -DMODULE_DEPENDENCY2=0,0,0 -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -flto -ffat-lto-objects -DPARTICLE_COMPILE_LTO_FAT -fno-use-cxa-atexit -std=gnu++17 -c -o ../build/target/user/platform-12
    at makeError (/Users/javiercalleja/.vscode/extensions/particle.particle-vscode-core-1.14.9/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/javiercalleja/.vscode/extensions/particle.particle-vscode-core-1.14.9/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@rob7, first, you should comment out “sensitive” bits in your code before posting, like the BLYNK stuff. I went ahead and removed those.

Second, this line refers to a myHandler function but I don’t see that function declaration anywhere.

Particle.subscribe("hook-response/a13", myHandler, MY_DEVICES);

You will need to add it before setup() and a “bare” one looks like this:

void myHandler(const char *event, const char *data)
{

}

See if adding that gets you further along.

1 Like

Thanks for the editing!

We were commenting out code to debug but forgot to add back the handler to thanks. I think we were having issues independent of that, but we’ll add it back and see what happens.

1 Like