Hi there,
Today I began to use Particle Workbench for Visual Studio Code. It is very nice. However, when I tried to use “Particle Cloud Compile”, the following logs were shown. It seemed that there were only warnings but no errors. No hex file was generated. Why? I can get the hex firmware generated by using the local compiler.
Compiling code for electron
Targeting version: 0.8.0-rc.10
Including:
lib/HttpClient/src/HttpClient.h
lib/HttpClient/src/HttpClient/HttpClient.h
lib/LIS3DH/src/LIS3DH.h
lib/OneWire/src/DS18.h
lib/OneWire/src/OneWire.h
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
src/spark-dallas-temperature.h
lib/OneWire/examples/Address_Scanner/Address_Scanner.ino
lib/OneWire/examples/DS18x20_Temperature/DS18x20_Temperature.ino
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
src/electron.ino
lib/HttpClient/examples/application/application.cpp
lib/HttpClient/src/HttpClient.cpp
lib/LIS3DH/examples/1_WakeOnMove/1_WakeOnMove.cpp
lib/LIS3DH/examples/2_Samples/2_Samples.cpp
lib/LIS3DH/examples/3_I2C/3_I2C.cpp
lib/LIS3DH/examples/4_Position/4_Position.cpp
lib/LIS3DH/examples/5_Movement/5_Movement.cpp
lib/LIS3DH/src/LIS3DH.cpp
lib/OneWire/src/DS18.cpp
lib/OneWire/src/OneWire.cpp
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
src/spark-dallas-temperature.cpp
project.properties
attempting to compile firmware
Processing lib/OneWire/examples/Address_Scanner/Address_Scanner.ino
Processing lib/OneWire/examples/DS18x20_Temperature/DS18x20_Temperature.ino
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 src/electron.ino
Checking library SparkJson...
Checking library OneWire...
Checking library HttpClient...
Checking library LIS3DH...
Installing library HttpClient 0.0.5 to lib/HttpClient ...
Installing library SparkJson 0.0.2 to lib/SparkJson ...
Library SparkJson 0.0.2 installed.
Installing library OneWire 2.0.3 to lib/OneWire ...
Installing library LIS3DH 0.2.2 to lib/LIS3DH ...
Library LIS3DH 0.2.2 installed.
Library OneWire 2.0.3 installed.
Library HttpClient 0.0.5 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/spark-dallas-temperature.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=0.8.0-rc.10 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../services/nanopb -I../communication/src -I../hal/inc -I../hal/shared -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/include -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_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/LIS3DH/src -Ilib/HttpClient/src -Ilib/OneWire/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/spark-dallas-temperature.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=5 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,309 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++11 -c -o ../build/target/user/platform-10-msrc/spark-dallas-temperature.o src/spark-dallas-temperature.cpp
Building cpp file: src/electron.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=0.8.0-rc.10 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../services/nanopb -I../communication/src -I../hal/inc -I../hal/shared -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/include -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_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/LIS3DH/src -Ilib/HttpClient/src -Ilib/OneWire/src -I. -MD -MP -MF ../build/target/user/platform-10-msrc/electron.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=5 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,309 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="\"app\"" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++11 -c -o ../build/target/user/platform-10-msrc/electron.o src/electron.cpp
In file included from lib/SparkJson/src/./ArduinoJson.h:7:0,
from lib/SparkJson/src/SparkJson.h:13,
from src/electron.ino:7:
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; }
^
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=0.8.0-rc.10 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../services/nanopb -I../communication/src -I../hal/inc -I../hal/shared -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/include -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/portable/GCC/ARM_CM3 -I../hal/src/electron -I../hal/src/stm32f2xx -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I../platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F2xx/STM32_USB_OTG_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/LIS3DH/src -Ilib/HttpClient/src -Ilib/OneWire/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=5 -DMODULE_FUNCTION=5 -DMODULE_IN
at makeError (/Users/john/.vscode/extensions/particle.particle-vscode-core-1.0.0-alpha.5/node_modules/execa/index.js:174:9)
at module.exports.Promise.all.then.arr (/Users/john/.vscode/extensions/particle.particle-vscode-core-1.0.0-alpha.5/node_modules/execa/index.js:278:16)
at <anonymous>
- - - -