Persnickety program won't compile

With so many programs successfully compiling, I’m at a loss as to why this one is being a challenge. Any guidance would be appreciated. It’s for an Electron and I’m trying to compile to 1.4.0.

Compiling code for photon
Targeting version: 1.4.0

Including:
    src/gsPut6ai6div2.ino
    project.properties
attempting to compile firmware 

Processing  src/gsPut6ai6div2.ino
make -C ../modules/photon/user-part all
make[1]: Entering directory '/firmware/modules/photon/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6div2.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-6-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=6 -DPLATFORM_NAME=photon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD006 -DUSBD_PID_CDC=0xC006 -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=6 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/photon -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../hal/src/photon/api -I../hal/src/photon/include -I../hal/src/photon/wiced/security/BESL/host/WICED/ -I../hal/src/photon/wiced/security/BESL/include -I../hal/src/photon/wiced/security/BESL -I../hal/src/photon/wiced/security/BESL/crypto -I../hal/src/photon/wiced/WWD/include/ -I../hal/src/photon/wiced/platform/include/ -I../hal/src/photon/wiced/platform/GCC/ -I../hal/src/photon/wiced/security/BESL/supplicant/ -I../hal/src/photon/libraries/crypto -I../hal/src/photon/libraries/daemons/DNS_redirect -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -I. -MD -MP -MF ../build/target/user/platform-6-msrc/gsPut6ai6div2.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DBOOTLOADER_SDK_3_3_0_PARTICLE -DPARTICLE_DCT_COMPATIBILITY -DSPARK_PLATFORM_NET=BCM9WCDUSI09 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x80A0000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-6-msrc/gsPut6ai6div2.o src/gsPut6ai6div2.cpp
src/gsPut6ai6div2.cpp:14:26: fatal error: thermistorLU.h: No such file or directory
compilation terminated.
../build/module.mk:277: recipe for target '../build/target/user/platform-6-msrc/gsPut6ai6div2.o' failed
make[2]: *** [../build/target/user/platform-6-msrc/gsPut6ai6div2.o] Error 1
make[2]: Leaving directory '/firmware/user'
../../../build/recurse.mk:11: recipe for target 'user' failed
make[1]: *** [user] Error 2
make[1]: Leaving directory '/firmware/modules/photon/user-part'
../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed
make: *** [modules/photon/user-part] Error 2
Compile failed: Compiler encountered an error
Error: Command failed: /Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/src/cli/bin/darwin/amd64/particle cloud compile photon --target 1.4.0 --no-update-check


Compiling code for photon
Targeting version: 1.4.0

Including:
    src/gsPut6ai6div2.ino
    project.properties
attempting to compile firmware 

Processing  src/gsPut6ai6div2.ino
make -C ../modules/photon/user-part all
make[1]: Entering directory '/firmware/modules/photon/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6div2.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-6-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=6 -DPLATFORM_NAME=photon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD006 -DUSBD_PID_CDC=0xC006 -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=6 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/photon -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../hal/src/photon/api -I../hal/src/photon/include -I../hal/src/photon/wiced/security/BESL/host/WICED/ -I../hal/src/photon/wiced/security/BESL/include -I../hal/src/photon/wiced/security/BESL -I../hal/src/photon/wiced/security/BESL/crypto -I../hal/src/photon/wiced/WWD/include/ -I../hal/src/photon/wiced/platform/include/ -I../hal/src/photon/wiced/platform/GCC/ -I../hal/src/photon/wiced/security/BESL/supplicant/ -I../hal/src/photon/libraries/crypto -I../hal/src/photon/libraries/daemons/DNS_redirect -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -I. -MD -MP -MF ../build/target/user/platform-6-msrc/gsPut6ai6div2.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DBOOTLOADER_SDK_3_3_0_PARTICLE -DPARTICLE_DCT_COMPATIBILITY -DSPARK_PLATFORM_NET=BCM9WCDUSI09 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x80A0000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-6-msrc/gsPut6ai6div2.o src/gsPut6ai6div2.cpp
src/gsPut6ai6div2.cpp:14:26: fatal error: thermistorLU.h: No such file or directory
compilation terminated.
../build/module.mk:277: recipe for target '../build/target/user/platform-6-msrc/gsPut6ai6div2.o' failed
make[2]: *** [../build/target/user/platform-6-msrc/gsPut6ai6div2.o] Error 1
make[2]: Leaving directory '/firmware/user'
../../../build/recurse.mk:11: recipe for target 'user' failed
make[1]: *** [user] Error 2
make[1]: Leaving directory '/firmware/modules/photon/user-part'
../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed
make: *** [modules/photon/user-part] Error 2
Compile failed: Compiler encountered an error

	at makeError (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:174:9)
	at module.exports.Promise.all.then.arr (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:278:16)

- - - -

Compiling code for electron
Targeting version: 1.4.0

Including:
    lib/SparkJson/src/ArduinoJson.h
    lib/SparkJson/src/DynamicJsonBuffer.h
    lib/SparkJson/src/IndentedPrint.h
    lib/SparkJson/src/JsonArray.h
    lib/SparkJson/src/JsonBuffer.h
    lib/SparkJson/src/JsonBufferAllocated.h
    lib/SparkJson/src/JsonObject.h
    lib/SparkJson/src/JsonPair.h
    lib/SparkJson/src/JsonParser.h
    lib/SparkJson/src/JsonPrintable.h
    lib/SparkJson/src/JsonVariant.h
    lib/SparkJson/src/JsonVariantContent.h
    lib/SparkJson/src/JsonVariantType.h
    lib/SparkJson/src/JsonWriter.h
    lib/SparkJson/src/List.h
    lib/SparkJson/src/ListConstIterator.h
    lib/SparkJson/src/ListIterator.h
    lib/SparkJson/src/ListNode.h
    lib/SparkJson/src/Prettyfier.h
    lib/SparkJson/src/Print.h
    lib/SparkJson/src/QuotedString.h
    lib/SparkJson/src/ReferenceType.h
    lib/SparkJson/src/SparkJson.h
    lib/SparkJson/src/StaticJsonBuffer.h
    lib/SparkJson/src/StringBuilder.h
    lib/thermistorLU/src/thermistorLU.h
    lib/SparkJson/examples/IndentedPrintExample/IndentedPrintExample.ino
    lib/SparkJson/examples/JsonGeneratorExample/JsonGeneratorExample.ino
    lib/SparkJson/examples/JsonParserExample/JsonParserExample.ino
    lib/SparkJson/examples/JsonServer/JsonServer.ino
    lib/SparkJson/src/my-core.ino
    lib/thermistorLU/examples/testThermistor/testThermistor.ino
    src/gsPut6ai6div2.ino
    lib/SparkJson/src/IndentedPrint.cpp
    lib/SparkJson/src/JsonArray.cpp
    lib/SparkJson/src/JsonBuffer.cpp
    lib/SparkJson/src/JsonObject.cpp
    lib/SparkJson/src/JsonParser.cpp
    lib/SparkJson/src/JsonVariant.cpp
    lib/SparkJson/src/List.cpp
    lib/SparkJson/src/Prettyfier.cpp
    lib/SparkJson/src/Print.cpp
    lib/SparkJson/src/QuotedString.cpp
    lib/SparkJson/src/SparkJson.cpp
    lib/SparkJson/src/StringBuilder.cpp
    lib/thermistorLU/src/thermistorLU.cpp
    project.properties
attempting to compile firmware 

Processing  lib/SparkJson/examples/IndentedPrintExample/IndentedPrintExample.ino
Processing  lib/SparkJson/examples/JsonGeneratorExample/JsonGeneratorExample.ino
Processing  lib/SparkJson/examples/JsonParserExample/JsonParserExample.ino
Processing  lib/SparkJson/examples/JsonServer/JsonServer.ino
Processing  lib/SparkJson/src/my-core.ino
Processing  lib/thermistorLU/examples/testThermistor/testThermistor.ino
Processing  src/gsPut6ai6div2.ino
Checking library thermistorLU...
Checking library SparkJson...
Installing library SparkJson 0.0.2 to lib/SparkJson ...
Installing library thermistorLU 1.0.1 to lib/thermistorLU ...
Library SparkJson 0.0.2 installed.
Library thermistorLU 1.0.1 installed.
make -C ../modules/electron/user-part all
make[1]: Entering directory '/firmware/modules/electron/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6div2.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/gsPut6ai6div2.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-msrc/gsPut6ai6div2.o src/gsPut6ai6div2.cpp
In file included from src/gsPut6ai6div2.cpp:14:0:
lib/thermistorLU/src/thermistorLU.h:19:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif thermistorLU_H
        ^
In file included from lib/SparkJson/src/./ArduinoJson.h:7:0,
                 from lib/SparkJson/src/SparkJson.h:13,
                 from src/gsPut6ai6div2.cpp:15:
lib/SparkJson/src/././DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()':
lib/SparkJson/src/././DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   ~DynamicJsonBuffer() { delete _next; }
                                 ^
src/gsPut6ai6div2.ino: In function 'void loop()':
src/gsPut6ai6div2.ino:161:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((gNow - gLastPublish) >= gPublishPeriod) {
                             ^

Building cpp file: lib/SparkJson/src/JsonVariant.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o lib/SparkJson/src/JsonVariant.cpp

Building cpp file: lib/SparkJson/src/StringBuilder.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/StringBuilder.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLO
Error: Command failed: /Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/src/cli/bin/darwin/amd64/particle cloud compile electron --target 1.4.0 --no-update-check


Compiling code for electron
Targeting version: 1.4.0

Including:
    lib/SparkJson/src/ArduinoJson.h
    lib/SparkJson/src/DynamicJsonBuffer.h
    lib/SparkJson/src/IndentedPrint.h
    lib/SparkJson/src/JsonArray.h
    lib/SparkJson/src/JsonBuffer.h
    lib/SparkJson/src/JsonBufferAllocated.h
    lib/SparkJson/src/JsonObject.h
    lib/SparkJson/src/JsonPair.h
    lib/SparkJson/src/JsonParser.h
    lib/SparkJson/src/JsonPrintable.h
    lib/SparkJson/src/JsonVariant.h
    lib/SparkJson/src/JsonVariantContent.h
    lib/SparkJson/src/JsonVariantType.h
    lib/SparkJson/src/JsonWriter.h
    lib/SparkJson/src/List.h
    lib/SparkJson/src/ListConstIterator.h
    lib/SparkJson/src/ListIterator.h
    lib/SparkJson/src/ListNode.h
    lib/SparkJson/src/Prettyfier.h
    lib/SparkJson/src/Print.h
    lib/SparkJson/src/QuotedString.h
    lib/SparkJson/src/ReferenceType.h
    lib/SparkJson/src/SparkJson.h
    lib/SparkJson/src/StaticJsonBuffer.h
    lib/SparkJson/src/StringBuilder.h
    lib/thermistorLU/src/thermistorLU.h
    lib/SparkJson/examples/IndentedPrintExample/IndentedPrintExample.ino
    lib/SparkJson/examples/JsonGeneratorExample/JsonGeneratorExample.ino
    lib/SparkJson/examples/JsonParserExample/JsonParserExample.ino
    lib/SparkJson/examples/JsonServer/JsonServer.ino
    lib/SparkJson/src/my-core.ino
    lib/thermistorLU/examples/testThermistor/testThermistor.ino
    src/gsPut6ai6div2.ino
    lib/SparkJson/src/IndentedPrint.cpp
    lib/SparkJson/src/JsonArray.cpp
    lib/SparkJson/src/JsonBuffer.cpp
    lib/SparkJson/src/JsonObject.cpp
    lib/SparkJson/src/JsonParser.cpp
    lib/SparkJson/src/JsonVariant.cpp
    lib/SparkJson/src/List.cpp
    lib/SparkJson/src/Prettyfier.cpp
    lib/SparkJson/src/Print.cpp
    lib/SparkJson/src/QuotedString.cpp
    lib/SparkJson/src/SparkJson.cpp
    lib/SparkJson/src/StringBuilder.cpp
    lib/thermistorLU/src/thermistorLU.cpp
    project.properties
attempting to compile firmware 

Processing  lib/SparkJson/examples/IndentedPrintExample/IndentedPrintExample.ino
Processing  lib/SparkJson/examples/JsonGeneratorExample/JsonGeneratorExample.ino
Processing  lib/SparkJson/examples/JsonParserExample/JsonParserExample.ino
Processing  lib/SparkJson/examples/JsonServer/JsonServer.ino
Processing  lib/SparkJson/src/my-core.ino
Processing  lib/thermistorLU/examples/testThermistor/testThermistor.ino
Processing  src/gsPut6ai6div2.ino
Checking library thermistorLU...
Checking library SparkJson...
Installing library SparkJson 0.0.2 to lib/SparkJson ...
Installing library thermistorLU 1.0.1 to lib/thermistorLU ...
Library SparkJson 0.0.2 installed.
Library thermistorLU 1.0.1 installed.
make -C ../modules/electron/user-part all
make[1]: Entering directory '/firmware/modules/electron/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6div2.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/gsPut6ai6div2.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-msrc/gsPut6ai6div2.o src/gsPut6ai6div2.cpp
In file included from src/gsPut6ai6div2.cpp:14:0:
lib/thermistorLU/src/thermistorLU.h:19:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif thermistorLU_H
        ^
In file included from lib/SparkJson/src/./ArduinoJson.h:7:0,
                 from lib/SparkJson/src/SparkJson.h:13,
                 from src/gsPut6ai6div2.cpp:15:
lib/SparkJson/src/././DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()':
lib/SparkJson/src/././DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   ~DynamicJsonBuffer() { delete _next; }
                                 ^
src/gsPut6ai6div2.ino: In function 'void loop()':
src/gsPut6ai6div2.ino:161:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((gNow - gLastPublish) >= gPublishPeriod) {
                             ^

Building cpp file: lib/SparkJson/src/JsonVariant.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o lib/SparkJson/src/JsonVariant.cpp

Building cpp file: lib/SparkJson/src/StringBuilder.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/StringBuilder.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLO
	at makeError (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:174:9)
	at module.exports.Promise.all.then.arr (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:278:16)

- - - -


The first line in your log does somewhat contradict this

Could you try compiling locally?

Near the end of your log I think you’re only getting warnings and not any errors. Maybe the compilation is taking too long and the cli bails?

I’d suggest importing the libraries locally into your project and building your project locally from within workbench.

@ScruffR, I got sloppy when trying to start from scratch with a new project and forgot to change the device to Electron. However, I get the same results (shown below). It’s crazy that all of my other programs seem to compile just fine, but there’s something about this one that weird.

@nrobinson2000, I tried a local compile but get the same error.

One thing I’ve noticed is that I’m getting a Intellisense(?) flag on the following statement

CellularSignal sig = Cellular.RSSI();

with the message:

object of abstract class type "CellularSignal" is not allowed: -- pure virtual function "Printable::printTo" has no overrider

Here’s the error, again, with Electron specified.

Compiling code for electron
Targeting version: 1.4.0

Including:
    lib/SparkJson/src/ArduinoJson.h
    lib/SparkJson/src/DynamicJsonBuffer.h
    lib/SparkJson/src/IndentedPrint.h
    lib/SparkJson/src/JsonArray.h
    lib/SparkJson/src/JsonBuffer.h
    lib/SparkJson/src/JsonBufferAllocated.h
    lib/SparkJson/src/JsonObject.h
    lib/SparkJson/src/JsonPair.h
    lib/SparkJson/src/JsonParser.h
    lib/SparkJson/src/JsonPrintable.h
    lib/SparkJson/src/JsonVariant.h
    lib/SparkJson/src/JsonVariantContent.h
    lib/SparkJson/src/JsonVariantType.h
    lib/SparkJson/src/JsonWriter.h
    lib/SparkJson/src/List.h
    lib/SparkJson/src/ListConstIterator.h
    lib/SparkJson/src/ListIterator.h
    lib/SparkJson/src/ListNode.h
    lib/SparkJson/src/Prettyfier.h
    lib/SparkJson/src/Print.h
    lib/SparkJson/src/QuotedString.h
    lib/SparkJson/src/ReferenceType.h
    lib/SparkJson/src/SparkJson.h
    lib/SparkJson/src/StaticJsonBuffer.h
    lib/SparkJson/src/StringBuilder.h
    lib/thermistorLU/src/thermistorLU.h
    lib/SparkJson/src/my-core.ino
    src/gsPut6ai6diElec.ino
    lib/SparkJson/src/IndentedPrint.cpp
    lib/SparkJson/src/JsonArray.cpp
    lib/SparkJson/src/JsonBuffer.cpp
    lib/SparkJson/src/JsonObject.cpp
    lib/SparkJson/src/JsonParser.cpp
    lib/SparkJson/src/JsonVariant.cpp
    lib/SparkJson/src/List.cpp
    lib/SparkJson/src/Prettyfier.cpp
    lib/SparkJson/src/Print.cpp
    lib/SparkJson/src/QuotedString.cpp
    lib/SparkJson/src/SparkJson.cpp
    lib/SparkJson/src/StringBuilder.cpp
    lib/thermistorLU/src/thermistorLU.cpp
    project.properties
attempting to compile firmware 

Processing  lib/SparkJson/src/my-core.ino
Processing  src/gsPut6ai6diElec.ino
Checking library SparkJson...
Checking library thermistorLU...
Installing library thermistorLU 1.0.1 to lib/thermistorLU ...
Installing library SparkJson 0.0.2 to lib/SparkJson ...
Library thermistorLU 1.0.1 installed.
Library SparkJson 0.0.2 installed.
make -C ../modules/electron/user-part all
make[1]: Entering directory '/firmware/modules/electron/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6diElec.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/gsPut6ai6diElec.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-msrc/gsPut6ai6diElec.o src/gsPut6ai6diElec.cpp
In file included from src/gsPut6ai6diElec.cpp:14:0:
lib/thermistorLU/src/thermistorLU.h:19:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif thermistorLU_H
        ^
In file included from lib/SparkJson/src/./ArduinoJson.h:7:0,
                 from lib/SparkJson/src/SparkJson.h:13,
                 from src/gsPut6ai6diElec.cpp:15:
lib/SparkJson/src/././DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()':
lib/SparkJson/src/././DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   ~DynamicJsonBuffer() { delete _next; }
                                 ^
src/gsPut6ai6diElec.ino: In function 'void loop()':
src/gsPut6ai6diElec.ino:161:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((gNow - gLastPublish) >= gPublishPeriod) {
                             ^

Building cpp file: lib/SparkJson/src/JsonVariant.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o lib/SparkJson/src/JsonVariant.cpp

Building cpp file: lib/SparkJson/src/StringBuilder.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/StringBuilder.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE
Error: Command failed: /Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/src/cli/bin/darwin/amd64/particle cloud compile electron --target 1.4.0 --no-update-check


Compiling code for electron
Targeting version: 1.4.0

Including:
    lib/SparkJson/src/ArduinoJson.h
    lib/SparkJson/src/DynamicJsonBuffer.h
    lib/SparkJson/src/IndentedPrint.h
    lib/SparkJson/src/JsonArray.h
    lib/SparkJson/src/JsonBuffer.h
    lib/SparkJson/src/JsonBufferAllocated.h
    lib/SparkJson/src/JsonObject.h
    lib/SparkJson/src/JsonPair.h
    lib/SparkJson/src/JsonParser.h
    lib/SparkJson/src/JsonPrintable.h
    lib/SparkJson/src/JsonVariant.h
    lib/SparkJson/src/JsonVariantContent.h
    lib/SparkJson/src/JsonVariantType.h
    lib/SparkJson/src/JsonWriter.h
    lib/SparkJson/src/List.h
    lib/SparkJson/src/ListConstIterator.h
    lib/SparkJson/src/ListIterator.h
    lib/SparkJson/src/ListNode.h
    lib/SparkJson/src/Prettyfier.h
    lib/SparkJson/src/Print.h
    lib/SparkJson/src/QuotedString.h
    lib/SparkJson/src/ReferenceType.h
    lib/SparkJson/src/SparkJson.h
    lib/SparkJson/src/StaticJsonBuffer.h
    lib/SparkJson/src/StringBuilder.h
    lib/thermistorLU/src/thermistorLU.h
    lib/SparkJson/src/my-core.ino
    src/gsPut6ai6diElec.ino
    lib/SparkJson/src/IndentedPrint.cpp
    lib/SparkJson/src/JsonArray.cpp
    lib/SparkJson/src/JsonBuffer.cpp
    lib/SparkJson/src/JsonObject.cpp
    lib/SparkJson/src/JsonParser.cpp
    lib/SparkJson/src/JsonVariant.cpp
    lib/SparkJson/src/List.cpp
    lib/SparkJson/src/Prettyfier.cpp
    lib/SparkJson/src/Print.cpp
    lib/SparkJson/src/QuotedString.cpp
    lib/SparkJson/src/SparkJson.cpp
    lib/SparkJson/src/StringBuilder.cpp
    lib/thermistorLU/src/thermistorLU.cpp
    project.properties
attempting to compile firmware 

Processing  lib/SparkJson/src/my-core.ino
Processing  src/gsPut6ai6diElec.ino
Checking library SparkJson...
Checking library thermistorLU...
Installing library thermistorLU 1.0.1 to lib/thermistorLU ...
Installing library SparkJson 0.0.2 to lib/SparkJson ...
Library thermistorLU 1.0.1 installed.
Library SparkJson 0.0.2 installed.
make -C ../modules/electron/user-part all
make[1]: Entering directory '/firmware/modules/electron/user-part'
make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/gsPut6ai6diElec.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/gsPut6ai6diElec.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-msrc/gsPut6ai6diElec.o src/gsPut6ai6diElec.cpp
In file included from src/gsPut6ai6diElec.cpp:14:0:
lib/thermistorLU/src/thermistorLU.h:19:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif thermistorLU_H
        ^
In file included from lib/SparkJson/src/./ArduinoJson.h:7:0,
                 from lib/SparkJson/src/SparkJson.h:13,
                 from src/gsPut6ai6diElec.cpp:15:
lib/SparkJson/src/././DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()':
lib/SparkJson/src/././DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   ~DynamicJsonBuffer() { delete _next; }
                                 ^
src/gsPut6ai6diElec.ino: In function 'void loop()':
src/gsPut6ai6diElec.ino:161:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((gNow - gLastPublish) >= gPublishPeriod) {
                             ^

Building cpp file: lib/SparkJson/src/JsonVariant.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\""  -fno-exceptions -fno-rtti -fcheck-new -std=gnu++14 -c -o ../build/target/user/platform-10-mSparkJson/src/JsonVariant.o lib/SparkJson/src/JsonVariant.cpp

Building cpp file: lib/SparkJson/src/StringBuilder.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-10-mSparkJson/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DSYSTEM_VERSION_STRING=1.4.0 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/freertos/freertos/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F2xx/CMSIS/Include -I../platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I../dynalib/inc -Isrc -I./libraries -Ilib/SparkJson/src -Ilib/thermistorLU/src -I. -MD -MP -MF ../build/target/user/platform-10-mSparkJson/src/StringBuilder.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=UBLOXSARA -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,1401 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE
	at makeError (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:174:9)
	at module.exports.Promise.all.then.arr (/Users/tom/.vscode/extensions/particle.particle-vscode-core-1.6.1/node_modules/execa/index.js:278:16)

- - - -


Could you post the log of the local compile then?

Particle: Compile application (local)

@nrobinson2000, it looks now like it did compile successfully

> Executing task in folder gsPut6ai6div2: make -f '/Users/tom/.particle/toolchains/buildscripts/1.7.1/Makefile' compile-user -s <

In file included from /Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/src/gsPut6ai6div2.ino:14:0:
/Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/lib/thermistorLU/src/thermistorLU.h:19:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif thermistorLU_H
        ^
In file included from /Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/lib/SparkJson/src/./ArduinoJson.h:7:0,
                 from /Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/lib/SparkJson/src/SparkJson.h:13,
                 from /Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/src/gsPut6ai6div2.ino:15:
/Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/lib/SparkJson/src/././DynamicJsonBuffer.h: In destructor 'ArduinoJson::DynamicJsonBuffer::~DynamicJsonBuffer()':
/Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/lib/SparkJson/src/././DynamicJsonBuffer.h:20:33: warning: deleting object of polymorphic class type 'ArduinoJson::DynamicJsonBuffer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
   ~DynamicJsonBuffer() { delete _next; }
                                 ^
/Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/src/gsPut6ai6div2.ino: In function 'void loop()':
/Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/src/gsPut6ai6div2.ino:161:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((gNow - gLastPublish) >= gPublishPeriod) {
                             ^
   text    data     bss     dec     hex filename
  29368     284    2912   32564    7f34 /Users/tom/Documents/Particle/Projects-HVACSP/gsPut6ai6div2/target/1.4.0/electron/gsPut6ai6div2.elf

*** COMPILED SUCCESSFULLY ***


Press any key to close the terminal.

Cool. So I think I have an idea why you were seeing that problem with the cloud compile. It look like the SparkJson library is still using the old library structure, which could explain why it looks like all the example .ino files were being included in the build when they shouldn’t have.

Processing  lib/SparkJson/examples/IndentedPrintExample/IndentedPrintExample.ino
Processing  lib/SparkJson/examples/JsonGeneratorExample/JsonGeneratorExample.ino
Processing  lib/SparkJson/examples/JsonParserExample/JsonParserExample.ino
Processing  lib/SparkJson/examples/JsonServer/JsonServer.ino
Processing  lib/SparkJson/src/my-core.ino
Processing  lib/thermistorLU/examples/testThermistor/testThermistor.ino

It looks like your testThermistor.ino example is getting included too.

Most .ino files have definitions for setup() and loop() and this could have created some kind of linker error in the cloud compile that couldn’t be seen.

I’d suggest cleaning up your libraries if you want to use the cloud compile. Personally I always use local compile.

@nrobinson2000, the thing I don’t understand is why all of my other (dozens) of programs that use this same libraries don’t have an issue. I’ll look at “cleaning” up my library (thermistorLU), but I have no control over the SparkJson library. I’m pretty much a novice on the whole library thingie, but it’s been working for me for a couple years now.

BTW, thank you for your insight and assistance. I’m assuming the .bin file with the same name as my project (in target->1.4.0->electron) is the application firmware I can download to the device(s)?

Correct. particle flash --usb <yourFirmware.bin> -v is the command for that (in DFU Mode).

1 Like

Hi @ScruffR, I usually just put the device into listening mode (flashing blue) and do a serial flash. However, I noticed your example specifies DFU mode. Is that your preference or is there an advantage in using DFU mode? Thanks!

The main reason for prefering DFU over serial is the feedback if your flash does not work.
With --serial you can “flash” binaries that are not actually targeted at the right platform but still get a “success” message. You can even just send an arbitrary file (even text) and will get a success message.
With --usb -v that won’t happen.

2 Likes