[ISSUE] Cloud Flash Failure

I have been having an issue getting “Particle: Cloud Flash” to work in Workbench. The code I want to flash compiles without error and can flash locally using DFU mode. If I compile the code, I can even flash over the air using the Particle CLI. But, Cloud Flash fails with the very verbose message pasted below.

Here is what I have tried:

  • Reset environment
  • Disabled all VS Code plug-ins except the three Particle ones
  • Updated all including the CLI
  • Cleaned my local firmware and OS
  • Deleted the /target directory and let it be rebuilt on compile

I am running:

  • Mac OS X Ventura 13.1
  • CLI v3.7.0
  • Workbench Core VS Code Plug-In v1.15.10

Here is the error log when the cloud flash fails:

Targeting version: 4.0.2

Including:
    lib/AB1805_RK/src/AB1805_RK.h
    lib/CryptoLW-RK/src/Acorn128.h
    lib/CryptoLW-RK/src/Ascon128.h
    lib/CryptoLW-RK/src/AuthenticatedCipher.h
    lib/CryptoLW-RK/src/BlockCipher.h
    lib/CryptoLW-RK/src/Cipher.h
    lib/CryptoLW-RK/src/Crypto.h
    lib/CryptoLW-RK/src/CryptoLW-RK.h
    lib/CryptoLW-RK/src/CryptoLW.h
    lib/CryptoLW-RK/src/Speck.h
    lib/CryptoLW-RK/src/SpeckSmall.h
    lib/CryptoLW-RK/src/SpeckTiny.h
    lib/CryptoLW-RK/src/utility/EndianUtil.h
    lib/CryptoLW-RK/src/utility/LimbUtil.h
    lib/CryptoLW-RK/src/utility/ProgMemUtil.h
    lib/CryptoLW-RK/src/utility/RotateUtil.h
    lib/MB85RC256V-FRAM-RK/src/MB85RC256V-FRAM-RK.h
    lib/RF9X-RK/src/RadioHead.h
    lib/RF9X-RK/src/RF9X-RK.h
    lib/RF9X-RK/src/RH_RF95.h
    lib/RF9X-RK/src/RHDatagram.h
    lib/RF9X-RK/src/RHEncryptedDriver.h
    lib/RF9X-RK/src/RHGenericDriver.h
    lib/RF9X-RK/src/RHGenericSPI.h
    lib/RF9X-RK/src/RHHardwareSPI.h
    lib/RF9X-RK/src/RHMesh.h
    lib/RF9X-RK/src/RHReliableDatagram.h
    lib/RF9X-RK/src/RHRouter.h
    lib/RF9X-RK/src/RHSPIDriver.h
    lib/RF9X-RK/src/RX9X-RK.h
    lib/StorageHelperRK/src/StorageHelperRK.h
    src/device_pinout.h
    src/LoRA_Functions.h
    src/MyPersistentData.h
    src/take_measurements.h
    lib/CryptoLW-RK/examples/1-TestAcorn/TestAcorn.ino
    lib/CryptoLW-RK/examples/2-TestAscon/TestAscon.ino
    lib/CryptoLW-RK/examples/3-TestSpeck/TestSpeck.ino
    lib/RF9X-RK/examples/5-mesh-client/rf95_mesh_client.ino
    lib/AB1805_RK/examples/01-minimal/01-minimal.cpp
    lib/AB1805_RK/examples/02-typical/02-typical.cpp
    lib/AB1805_RK/examples/03-periodic-wake/03-periodic-wake.cpp
    lib/AB1805_RK/examples/04-selftest/04-selftest.cpp
    lib/AB1805_RK/examples/05-hwtest/05-hwtest.cpp
    lib/AB1805_RK/examples/06-supercap/06-supercap.cpp
    lib/AB1805_RK/examples/07-deep-power/07-deep-power.cpp
    lib/AB1805_RK/src/AB1805_RK.cpp
    lib/CryptoLW-RK/src/Acorn128.cpp
    lib/CryptoLW-RK/src/Ascon128.cpp
    lib/CryptoLW-RK/src/AuthenticatedCipher.cpp
    lib/CryptoLW-RK/src/BlockCipher.cpp
    lib/CryptoLW-RK/src/Cipher.cpp
    lib/CryptoLW-RK/src/Crypto.cpp
    lib/CryptoLW-RK/src/CryptoLW-RK.cpp
    lib/CryptoLW-RK/src/Speck.cpp
    lib/CryptoLW-RK/src/SpeckSmall.cpp
    lib/CryptoLW-RK/src/SpeckTiny.cpp
    lib/MB85RC256V-FRAM-RK/examples/simple/fram-simple.cpp
    lib/MB85RC256V-FRAM-RK/examples/test1m/test1m.cpp
    lib/MB85RC256V-FRAM-RK/src/MB85RC256V-FRAM-RK.cpp
    lib/RF9X-RK/examples/1-encrypted-server/rf95_encrypted_server.cpp
    lib/RF9X-RK/examples/2-encrypted-client/rf95_encrypted_client.cpp
    lib/RF9X-RK/examples/3-reliable-datagram-server/rf95_reliable_datagram_server.cpp
    lib/RF9X-RK/examples/4-reliable-datagram-client/rf95_reliable_datagram_client.cpp
    lib/RF9X-RK/examples/6-mesh-server1/rf95_mesh_server1.cpp
    lib/RF9X-RK/examples/7-mesh-server2/rf95_mesh_server2.cpp
    lib/RF9X-RK/examples/8-mesh-server3/rf95_mesh_server3.cpp
    lib/RF9X-RK/more-examples/10-reliable-datagram-client-display/src/10-reliable-datagram-client-display.cpp
    lib/RF9X-RK/src/RF9X-RK.cpp
    lib/RF9X-RK/src/RH_RF95.cpp
    lib/RF9X-RK/src/RHDatagram.cpp
    lib/RF9X-RK/src/RHEncryptedDriver.cpp
    lib/RF9X-RK/src/RHGenericDriver.cpp
    lib/RF9X-RK/src/RHGenericSPI.cpp
    lib/RF9X-RK/src/RHHardwareSPI.cpp
    lib/RF9X-RK/src/RHMesh.cpp
    lib/RF9X-RK/src/RHReliableDatagram.cpp
    lib/RF9X-RK/src/RHRouter.cpp
    lib/RF9X-RK/src/RHSPIDriver.cpp
    lib/StorageHelperRK/examples/04-persistent/04-persistent.cpp
    lib/StorageHelperRK/examples/05-eeprom/05-eeprom.cpp
    lib/StorageHelperRK/examples/06-retained/06-retained.cpp
    lib/StorageHelperRK/examples/07-validate/07-validate.cpp
    lib/StorageHelperRK/src/StorageHelperRK.cpp
    src/device_pinout.cpp
    src/LoRA_Functions.cpp
    src/LoRA-Particle-Node.cpp
    src/MyPersistentData.cpp
    src/take_measurements.cpp
    project.properties

attempting to flash firmware to your device NCParks192-SRA-JORD-Ebenezer-Relay

Processing  lib/CryptoLW-RK/examples/1-TestAcorn/TestAcorn.ino
Processing  lib/CryptoLW-RK/examples/2-TestAscon/TestAscon.ino
Processing  lib/CryptoLW-RK/examples/3-TestSpeck/TestSpeck.ino
Processing  lib/RF9X-RK/examples/5-mesh-client/rf95_mesh_client.ino
Checking library AB1805_RK...
Checking library MB85RC256V-FRAM-RK...
Checking library RF9X-RK...
Checking library CryptoLW-RK...
Checking library StorageHelperRK...
Installing library CryptoLW-RK 0.2.0 to lib/CryptoLW-RK ...
Installing library StorageHelperRK 0.0.3 to lib/StorageHelperRK ...
Installing library RF9X-RK 0.0.5 to lib/RF9X-RK ...
Installing library MB85RC256V-FRAM-RK 0.0.5 to lib/MB85RC256V-FRAM-RK ...
Installing library AB1805_RK 0.0.1 to lib/AB1805_RK ...
Library MB85RC256V-FRAM-RK 0.0.5 installed.
Library RF9X-RK 0.0.5 installed.
Library StorageHelperRK 0.0.3 installed.
Library CryptoLW-RK 0.2.0 installed.
Library AB1805_RK 0.0.1 installed.
make -C ../modules/boron/user-part all
make[1]: Entering directory `/firmware/modules/boron/user-part'

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

make -C ../../../user 
make[2]: Entering directory `/firmware/user'
Building cpp file: src/MyPersistentData.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-13-msrc/
arm-none-eabi-gcc -DMCU_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DPLATFORM_GEN=3 -DUSBD_VID_PARTICLE=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -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=13 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=4.0.2 -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/boron -I../hal/network/lwip/cellular -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/RF9X-RK/src -Ilib/StorageHelperRK/src -Ilib/MB85RC256V-FRAM-RK/src -Ilib/AB1805_RK/src -Ilib/CryptoLW-RK/src -I. -MD -MP -MF ../build/target/user/platform-13-msrc/MyPersistentData.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=UBLOXSARA -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,4006 -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-13-msrc/MyPersistentData.o src/MyPersistentData.cpp

Building cpp file: src/LoRA-Particle-Node.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-13-msrc/
arm-none-eabi-gcc -DMCU_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DPLATFORM_GEN=3 -DUSBD_VID_PARTICLE=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -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=13 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENA
Error: Command failed with exit code 1: /Users/chipmc/.vscode/extensions/particle.particle-vscode-core-1.15.10/src/cli/bin/darwin/amd64/particle cloud flash NCParks192-SRA-JORD-Ebenezer-Relay --target 4.0.2 --no-update-check
Targeting version: 4.0.2

Including:
    lib/AB1805_RK/src/AB1805_RK.h
    lib/CryptoLW-RK/src/Acorn128.h
    lib/CryptoLW-RK/src/Ascon128.h
    lib/CryptoLW-RK/src/AuthenticatedCipher.h
    lib/CryptoLW-RK/src/BlockCipher.h
    lib/CryptoLW-RK/src/Cipher.h
    lib/CryptoLW-RK/src/Crypto.h
    lib/CryptoLW-RK/src/CryptoLW-RK.h
    lib/CryptoLW-RK/src/CryptoLW.h
    lib/CryptoLW-RK/src/Speck.h
    lib/CryptoLW-RK/src/SpeckSmall.h
    lib/CryptoLW-RK/src/SpeckTiny.h
    lib/CryptoLW-RK/src/utility/EndianUtil.h
    lib/CryptoLW-RK/src/utility/LimbUtil.h
    lib/CryptoLW-RK/src/utility/ProgMemUtil.h
    lib/CryptoLW-RK/src/utility/RotateUtil.h
    lib/MB85RC256V-FRAM-RK/src/MB85RC256V-FRAM-RK.h
    lib/RF9X-RK/src/RadioHead.h
    lib/RF9X-RK/src/RF9X-RK.h
    lib/RF9X-RK/src/RH_RF95.h
    lib/RF9X-RK/src/RHDatagram.h
    lib/RF9X-RK/src/RHEncryptedDriver.h
    lib/RF9X-RK/src/RHGenericDriver.h
    lib/RF9X-RK/src/RHGenericSPI.h
    lib/RF9X-RK/src/RHHardwareSPI.h
    lib/RF9X-RK/src/RHMesh.h
    lib/RF9X-RK/src/RHReliableDatagram.h
    lib/RF9X-RK/src/RHRouter.h
    lib/RF9X-RK/src/RHSPIDriver.h
    lib/RF9X-RK/src/RX9X-RK.h
    lib/StorageHelperRK/src/StorageHelperRK.h
    src/device_pinout.h
    src/LoRA_Functions.h
    src/MyPersistentData.h
    src/take_measurements.h
    lib/CryptoLW-RK/examples/1-TestAcorn/TestAcorn.ino
    lib/CryptoLW-RK/examples/2-TestAscon/TestAscon.ino
    lib/CryptoLW-RK/examples/3-TestSpeck/TestSpeck.ino
    lib/RF9X-RK/examples/5-mesh-client/rf95_mesh_client.ino
    lib/AB1805_RK/examples/01-minimal/01-minimal.cpp
    lib/AB1805_RK/examples/02-typical/02-typical.cpp
    lib/AB1805_RK/examples/03-periodic-wake/03-periodic-wake.cpp
    lib/AB1805_RK/examples/04-selftest/04-selftest.cpp
    lib/AB1805_RK/examples/05-hwtest/05-hwtest.cpp
    lib/AB1805_RK/examples/06-supercap/06-supercap.cpp
    lib/AB1805_RK/examples/07-deep-power/07-deep-power.cpp
    lib/AB1805_RK/src/AB1805_RK.cpp
    lib/CryptoLW-RK/src/Acorn128.cpp
    lib/CryptoLW-RK/src/Ascon128.cpp
    lib/CryptoLW-RK/src/AuthenticatedCipher.cpp
    lib/CryptoLW-RK/src/BlockCipher.cpp
    lib/CryptoLW-RK/src/Cipher.cpp
    lib/CryptoLW-RK/src/Crypto.cpp
    lib/CryptoLW-RK/src/CryptoLW-RK.cpp
    lib/CryptoLW-RK/src/Speck.cpp
    lib/CryptoLW-RK/src/SpeckSmall.cpp
    lib/CryptoLW-RK/src/SpeckTiny.cpp
    lib/MB85RC256V-FRAM-RK/examples/simple/fram-simple.cpp
    lib/MB85RC256V-FRAM-RK/examples/test1m/test1m.cpp
    lib/MB85RC256V-FRAM-RK/src/MB85RC256V-FRAM-RK.cpp
    lib/RF9X-RK/examples/1-encrypted-server/rf95_encrypted_server.cpp
    lib/RF9X-RK/examples/2-encrypted-client/rf95_encrypted_client.cpp
    lib/RF9X-RK/examples/3-reliable-datagram-server/rf95_reliable_datagram_server.cpp
    lib/RF9X-RK/examples/4-reliable-datagram-client/rf95_reliable_datagram_client.cpp
    lib/RF9X-RK/examples/6-mesh-server1/rf95_mesh_server1.cpp
    lib/RF9X-RK/examples/7-mesh-server2/rf95_mesh_server2.cpp
    lib/RF9X-RK/examples/8-mesh-server3/rf95_mesh_server3.cpp
    lib/RF9X-RK/more-examples/10-reliable-datagram-client-display/src/10-reliable-datagram-client-display.cpp
    lib/RF9X-RK/src/RF9X-RK.cpp
    lib/RF9X-RK/src/RH_RF95.cpp
    lib/RF9X-RK/src/RHDatagram.cpp
    lib/RF9X-RK/src/RHEncryptedDriver.cpp
    lib/RF9X-RK/src/RHGenericDriver.cpp
    lib/RF9X-RK/src/RHGenericSPI.cpp
    lib/RF9X-RK/src/RHHardwareSPI.cpp
    lib/RF9X-RK/src/RHMesh.cpp
    lib/RF9X-RK/src/RHReliableDatagram.cpp
    lib/RF9X-RK/src/RHRouter.cpp
    lib/RF9X-RK/src/RHSPIDriver.cpp
    lib/StorageHelperRK/examples/04-persistent/04-persistent.cpp
    lib/StorageHelperRK/examples/05-eeprom/05-eeprom.cpp
    lib/StorageHelperRK/examples/06-retained/06-retained.cpp
    lib/StorageHelperRK/examples/07-validate/07-validate.cpp
    lib/StorageHelperRK/src/StorageHelperRK.cpp
    src/device_pinout.cpp
    src/LoRA_Functions.cpp
    src/LoRA-Particle-Node.cpp
    src/MyPersistentData.cpp
    src/take_measurements.cpp
    project.properties

attempting to flash firmware to your device NCParks192-SRA-JORD-Ebenezer-Relay

Processing  lib/CryptoLW-RK/examples/1-TestAcorn/TestAcorn.ino
Processing  lib/CryptoLW-RK/examples/2-TestAscon/TestAscon.ino
Processing  lib/CryptoLW-RK/examples/3-TestSpeck/TestSpeck.ino
Processing  lib/RF9X-RK/examples/5-mesh-client/rf95_mesh_client.ino
Checking library AB1805_RK...
Checking library MB85RC256V-FRAM-RK...
Checking library RF9X-RK...
Checking library CryptoLW-RK...
Checking library StorageHelperRK...
Installing library CryptoLW-RK 0.2.0 to lib/CryptoLW-RK ...
Installing library StorageHelperRK 0.0.3 to lib/StorageHelperRK ...
Installing library RF9X-RK 0.0.5 to lib/RF9X-RK ...
Installing library MB85RC256V-FRAM-RK 0.0.5 to lib/MB85RC256V-FRAM-RK ...
Installing library AB1805_RK 0.0.1 to lib/AB1805_RK ...
Library MB85RC256V-FRAM-RK 0.0.5 installed.
Library RF9X-RK 0.0.5 installed.
Library StorageHelperRK 0.0.3 installed.
Library CryptoLW-RK 0.2.0 installed.
Library AB1805_RK 0.0.1 installed.
make -C ../modules/boron/user-part all
make[1]: Entering directory `/firmware/modules/boron/user-part'

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

make -C ../../../user 
make[2]: Entering directory `/firmware/user'
Building cpp file: src/MyPersistentData.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-13-msrc/
arm-none-eabi-gcc -DMCU_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DPLATFORM_GEN=3 -DUSBD_VID_PARTICLE=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -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=13 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=4.0.2 -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/boron -I../hal/network/lwip/cellular -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/RF9X-RK/src -Ilib/StorageHelperRK/src -Ilib/MB85RC256V-FRAM-RK/src -Ilib/AB1805_RK/src -Ilib/CryptoLW-RK/src -I. -MD -MP -MF ../build/target/user/platform-13-msrc/MyPersistentData.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=UBLOXSARA -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,4006 -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-13-msrc/MyPersistentData.o src/MyPersistentData.cpp

Building cpp file: src/LoRA-Particle-Node.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-13-msrc/
arm-none-eabi-gcc -DMCU_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=13 -DPLATFORM_NAME=boron -DPLATFORM_GEN=3 -DUSBD_VID_PARTICLE=0x2B04 -DUSBD_PID_DFU=0xD00D -DUSBD_PID_CDC=0xC00D -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=13 -DPRODUCT_FIRMWARE_VERSION=65535 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENA
	at makeError (/Users/chipmc/.vscode/extensions/particle.particle-vscode-core-1.15.10/node_modules/execa/lib/error.js:59:11)
	at handlePromise (/Users/chipmc/.vscode/extensions/particle.particle-vscode-core-1.15.10/node_modules/execa/index.js:114:26)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

- - - -

Any help appreciated.

Thanks,

Chip

Having the same issue. You ever get it resolved? I had a copy of a known working firmware that I was able to flash but as far as I can tell, I didn't change anything in my code - which is to say that I did change something, encountered this problem, rolled back the change and am still encountering the issue.

Just like you, I can compile locally and then point the CLI at the locally compiled bin file and then do a particle cloud flash <device> path-to-the.bin
and it works fine.

Also noticed that if I do a cloud compile from the workbench, the bin file output is like, 5KB vs the 'known good' one that's around 58KB, but the locally compiled bin output is about the same size as the 'known good' one.

I can list versions of things if needed but I'm getting the impression whatever changed isn't on our end because I hadn't even opened the workbench in months since last fiddling with it.

The curious thing is that if I create a test project with cloud functions/variables, it seems to work as expected. The only difference I can think of is that I'm still on 1.5.4-rc.2 because I still use the mesh stuff and I'm wondering if that finally got pulled from the cloud compiler and I just missed that memo - though I'd have expected a relevant error message...

The next step is to try a cloud compile with increase debugging. If using Workbench, use Particle: Launch CLI then:

particle compile argon . -v --target 1.5.4.rc.2 --saveTo firmware.bin

(replace argon with your actual type of device)

The most common reason Workbench generates a different binary is that it's building a different directory. You should open the directory containing the project.properties for the project you are building, not a directory above it. The file you have open does not control what is built.

I'm fairly certain that things are organized as you suggested:

<test_project> (root dir)
---- <lib> (with various sub-directories for the includes)
---- <src> (home of the ino)
-------- test_project.ino
---- <target>
-------- <1.5.4-rc.2>
------------ <argon>
---------------- test_project.bin
---------------- test_project... (a variety of files)
---------------- <obj>
-------------------- <src>
------------------------ (some other files with .o or .d as an extension)
---- project.properties
---- README.md
---- test_project_firmware_1234567890.bin
---- test_project_firmware_1234567891.bin
---- test_project_firmware_1234567892.bin

I couldn't think of a particularly great way of depicting the directory structure so folders have < and > around them. Things aren't sorted in any meaningful way but the directory depth should be more or less what I see.

I haven't tried the command from the CLI you suggested yet but thats next.

I think I found the issue - or AN issue.... I omitted a directory in the project from my previous post because I didn't think it was relevant. I had a folder named "bak" with some things I'd tried and some unused libs that I wasn't sure yet if I was going to delete. When I went to compile using the command you suggested, the first (and last) thing it did was to go through that folder before "finishing". No errors, but the file size was 5KB. I renamed the folder to ".bak", which I believe causes the folder to be ignored, and then it actually went through all the expected folders and output a bin file that's ~58KB (expected size).

That's probably the end of that for me but I'll be back if I manage to bork it some more :roll_eyes:
(Thanks for the help Rick!)