Hi!,
when i tried to compile a code on Particle Web IDE with a Red Bear Duo as a target device including the Blynk 0.4.4 library, the "src/blynk-test-v02.cpp:2:19: fatal error: blynk.h: No such file or directory"
error appears, but, when I try to verify the same code with a Photon Device as target device, everything is OK. In addition, in case i use the Blynk legacy library instead, the code successfully compiles with a Red Bear Duo as a target device … what’s the problem? how could i compile with such target devices by using the Blynk 0.4.4 library?. thanks
Particle just updated their livrary structure, se we are working to bring it back to life…
I just published an updated library.
Could you check if it works for you?
Hi @vshymanskyy … now the following error arises when Red Bear Duo is selected as target device from Particle Web IDE:
lib/blynk/src/utility/BlynkDebug.cpp:9:30: fatal error: Blynk/BlynkDebug.h: No such file or directory
#include <Blynk/BlynkDebug.h>
Thanks!
@vshymanskyy, I am getting errors when I include Blynk in a project. When I compile for the Core with anything above 0.6.0, I get errors. However, everything compiles on Photon with versions above 0.6.0. The errors I get are:
Processing /workspace/bme280-blynk.ino
Checking library Adafruit_BME280...
Checking library blynk...
Installing library Adafruit_BME280 1.1.2 to /workspace/lib/Adafruit_BME280 ...
Installing library blynk 0.4.5 to /workspace/lib/blynk ...
Library blynk 0.4.5 installed.
Library Adafruit_BME280 1.1.2 installed.
fatal: destination path 'firmware' already exists and is not an empty directory.
fatal: unable to access 'https://github.com/spark/buildpack-base.git/': Could not resolve host: github.com
make -C ../newlib_nano
make[1]: Entering directory '/firmware/newlib_nano'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/newlib_nano'
make -C ../user
make[1]: Entering directory '/firmware/user'
Building cpp file: /workspace//src/bme280-blynk.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto/workspace/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I/workspace//src -I./libraries -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace/lib/blynk/src -I/workspace/lib/Adafruit_BME280/src -I. -MD -MP -MF ../build/target/user/platform-0-lto/workspace/src/bme280-blynk.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSE_THREADING=0 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_THREADING=0 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=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-0-lto/workspace/src/bme280-blynk.o /workspace//src/bme280-blynk.cpp
In file included from /workspace/lib/blynk/src/Blynk/BlynkApi.h:18:0,
from /workspace/lib/blynk/src/BlynkApiParticle.h:14,
from /workspace/lib/blynk/src/BlynkParticle.h:14,
from /workspace/lib/blynk/src/BlynkSimpleParticle.h:14,
from /workspace/lib/blynk/src/blynk.h:11,
from /workspace//src/bme280-blynk.cpp:26:
/workspace/lib/blynk/src/Blynk/BlynkProtocolDefs.h:96:0: warning: "htons" redefined [enabled by default]
#define htons(x) ( ((x)<<8) | (((x)>>8)&0xFF) )
^
In file included from ../hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.h:23,
from /workspace//src/bme280-blynk.cpp:25:
../platform/NET/CC3000/CC3000_Host_Driver/socket.h:195:0: note: this is the location of the previous definition
#define htons(A) ((((UINT32)(A) & 0xff00) >> 8) | \
^
In file included from /workspace/lib/blynk/src/Blynk/BlynkApi.h:18:0,
from /workspace/lib/blynk/src/BlynkApiParticle.h:14,
from /workspace/lib/blynk/src/BlynkParticle.h:14,
from /workspace/lib/blynk/src/BlynkSimpleParticle.h:14,
from /workspace/lib/blynk/src/blynk.h:11,
from /workspace//src/bme280-blynk.cpp:26:
/workspace/lib/blynk/src/Blynk/BlynkProtocolDefs.h:97:0: warning: "htonl" redefined [enabled by default]
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
^
In file included from ../hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.h:23,
from /workspace//src/bme280-blynk.cpp:25:
../platform/NET/CC3000/CC3000_Host_Driver/socket.h:187:0: note: this is the location of the previous definition
#define htonl(A) ((((UINT32)(A) & 0xff000000) >> 24) | \
^
In file included from /workspace/lib/blynk/src/Blynk/BlynkApi.h:18:0,
from /workspace/lib/blynk/src/BlynkApiParticle.h:14,
from /workspace/lib/blynk/src/BlynkParticle.h:14,
from /workspace/lib/blynk/src/BlynkSimpleParticle.h:14,
from /workspace/lib/blynk/src/blynk.h:11,
from /workspace//src/bme280-blynk.cpp:26:
/workspace/lib/blynk/src/Blynk/BlynkProtocolDefs.h:101:0: warning: "ntohs" redefined [enabled by default]
#define ntohs(x) htons(x)
^
In file included from ../hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.h:23,
from /workspace//src/bme280-blynk.cpp:25:
../platform/NET/CC3000/CC3000_Host_Driver/socket.h:199:0: note: this is the location of the previous definition
#define ntohs htons
^
In file included from /workspace/lib/blynk/src/Blynk/BlynkApi.h:18:0,
from /workspace/lib/blynk/src/BlynkApiParticle.h:14,
from /workspace/lib/blynk/src/BlynkParticle.h:14,
from /workspace/lib/blynk/src/BlynkSimpleParticle.h:14,
from /workspace/lib/blynk/src/blynk.h:11,
from /workspace//src/bme280-blynk.cpp:26:
/workspace/lib/blynk/src/Blynk/BlynkProtocolDefs.h:102:0: warning: "ntohl" redefined [enabled by default]
#define ntohl(x) htonl(x)
^
In file included from ../hal/src/core/platform_headers.h:23:0,
from ./inc/application.h:32,
from /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.h:23,
from /workspace//src/bme280-blynk.cpp:25:
../platform/NET/CC3000/CC3000_Host_Driver/socket.h:192:0: note: this is the location of the previous definition
#define ntohl htonl
^
Building cpp file: /workspace/lib/blynk/src/blynk.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto/workspace/blynk/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I/workspace//src -I./libraries -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace/lib/blynk/src -I/workspace/lib/Adafruit_BME280/src -I. -MD -MP -MF ../build/target/user/platform-0-lto/workspace/blynk/src/blynk.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSE_THREADING=0 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_THREADING=0 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=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-0-lto/workspace/blynk/src/blynk.o /workspace/lib/blynk/src/blynk.cpp
Building cpp file: /workspace/lib/blynk/src/utility/BlynkHandlers.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto/workspace/blynk/src/utility/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I/workspace//src -I./libraries -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace/lib/blynk/src -I/workspace/lib/Adafruit_BME280/src -I. -MD -MP -MF ../build/target/user/platform-0-lto/workspace/blynk/src/utility/BlynkHandlers.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSE_THREADING=0 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_THREADING=0 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=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-0-lto/workspace/blynk/src/utility/BlynkHandlers.o /workspace/lib/blynk/src/utility/BlynkHandlers.cpp
Building cpp file: /workspace/lib/blynk/src/utility/BlynkDebug.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto/workspace/blynk/src/utility/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I/workspace//src -I./libraries -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace/lib/blynk/src -I/workspace/lib/Adafruit_BME280/src -I. -MD -MP -MF ../build/target/user/platform-0-lto/workspace/blynk/src/utility/BlynkDebug.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSE_THREADING=0 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_THREADING=0 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=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-0-lto/workspace/blynk/src/utility/BlynkDebug.o /workspace/lib/blynk/src/utility/BlynkDebug.cpp
Building cpp file: /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-0-lto/workspace/Adafruit_BME280/src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -DSPARK_PLATFORM -DFLASHEE_EEPROM -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../services/inc -I../communication/src -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I/workspace//src -I./libraries -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace//src -I/workspace/lib/blynk/src -I/workspace/lib/Adafruit_BME280/src -I. -MD -MP -MF ../build/target/user/platform-0-lto/workspace/Adafruit_BME280/src/Adafruit_BME280.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=CC3000 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSE_THREADING=0 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_SPI=SPI -DUSE_CS=A2 -DUSE_THREADING=0 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=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-0-lto/workspace/Adafruit_BME280/src/Adafruit_BME280.o /workspace/lib/Adafruit_BME280/src/Adafruit_BME280.cpp
Building target: ../build/target/user/platform-0-lto/workspace/libuser.a
Invoking: ARM GCC Archiver
mkdir -p ../build/target/user/platform-0-lto/workspace/
arm-none-eabi-gcc-ar -cr ../build/target/user/platform-0-lto/workspace/libuser.a ../build/target/user/platform-0-lto/workspace/src/bme280-blynk.o ../build/target/user/platform-0-lto/workspace/blynk/src/blynk.o ../build/target/user/platform-0-lto/workspace/blynk/src/utility/BlynkHandlers.o ../build/target/user/platform-0-lto/workspace/blynk/src/utility/BlynkDebug.o ../build/target/user/platform-0-lto/workspace/Adafruit_BME280/src/Adafruit_BME280.o
make[1]: Leaving directory '/firmware/user'
make -C ../wiring
make[1]: Entering directory '/firmware/wiring'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/wiring'
make -C ../hal
make[1]: Entering directory '/firmware/hal'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/hal'
make -C ../system
make[1]: Entering directory '/firmware/system'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/system'
make -C ../services
make[1]: Entering directory '/firmware/services'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/services'
make -C ../communication
make[1]: Entering directory '/firmware/communication'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/communication'
make -C ../platform
make[1]: Entering directory '/firmware/platform'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/platform'
make -C ../wiring_globals
make[1]: Entering directory '/firmware/wiring_globals'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/firmware/wiring_globals'
Building c file: src/module_info.c
Invoking: ARM GCC C Compiler
mkdir -p /workspace/target/obj/./src/
arm-none-eabi-gcc -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -Werror -I../user/inc -I../wiring/inc -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../system/inc -I../services/inc -I../communication/src -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I. -MD -MP -MF /workspace/target/obj/./src/module_info.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -Wno-pointer-sign -std=gnu99 -c -o /workspace/target/obj/./src/module_info.o src/module_info.c
Building file: ../build/arm/startup/startup_stm32f10x_md.S
Invoking: ARM GCC Assembler
mkdir -p /workspace/target/obj/startup/
arm-none-eabi-gcc -g3 -gdwarf-2 -mcpu=cortex-m3 -mthumb -I../build/arm/startup -Wa,--defsym -Wa,SPARK_INIT_STARTUP=1 -x assembler-with-cpp -fmessage-length=0 -c -o /workspace/target/obj/startup/startup_stm32f10x_md.o ../build/arm/startup/startup_stm32f10x_md.S
Building target: /workspace/target/workspace.elf
Invoking: ARM GCC C++ Linker
mkdir -p /workspace/target/
arm-none-eabi-g++ -DSTM32_DEVICE -DSTM32F10X_MD -DPLATFORM_THREADING=0 -DPLATFORM_ID=0 -DPLATFORM_NAME=core -DUSBD_VID_SPARK=0x1D50 -DUSBD_PID_DFU=0x607F -DUSBD_PID_CDC=0x607D -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -flto -DINCLUDE_PLATFORM=1 -DPRODUCT_ID=0 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1-rc.2 -DRELEASE_BUILD -Werror -I../user/inc -I../wiring/inc -I../hal/inc -I../hal/shared -I../hal/src/core -I../hal/src/stm32 -I../system/inc -I../services/inc -I../communication/src -I../platform/shared/inc -I../platform/MCU/STM32F1xx/STM32_StdPeriph_Driver/inc -I../platform/MCU/STM32F1xx/STM32_USB_Device_Driver/inc -I../platform/MCU/STM32F1xx/SPARK_Firmware_Driver/inc -I../platform/MCU/shared/STM32/inc -I../platform/MCU/STM32F1xx/CMSIS/Include -I../platform/MCU/STM32F1xx/CMSIS/Device/ST/Include -I../platform/NET/CC3000/CC3000_Host_Driver -I../dynalib/inc -I. -MD -MP -MF /workspace/target/workspace.elf.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DMODULE_VERSION=0 -DMODULE_FUNCTION=3 -DMODULE_DEPENDENCY=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE /workspace/target/obj/./src/module_info.o /workspace/target/obj/startup/startup_stm32f10x_md.o --output /workspace/target/workspace.elf -nostartfiles -Xlinker --gc-sections -flto -Os -fuse-linker-plugin -Tlinker_stm32f10x_md_dfu.ld -L../build/arm/linker --specs=nano.specs -lc -lnosys -u _printf_float -Wl,-Map,/workspace/target/workspace.map -L../build/target/user/platform-0-lto/workspace/ -L../build/target/wiring/platform-0-lto/ -L../build/target/system/platform-0-lto/ -L../build/target/services/platform-0-lto/ -L../build/target/communication/platform-0-lto-prod-0/ -L../build/target/hal/platform-0-lto/ -L../build/target/platform/platform-0-lto/ -L../build/target/wiring_globals/platform-0-lto/ -L../build/target/newlib_nano/platform-0-lto -L../build/arm/linker -Wl,--whole-archive -lnewlib_nano -luser -lwiring -lhal -lsystem -lservices -lcommunication -lplatform -lwiring_globals -Wl,--no-whole-archive
/usr/local/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: /workspace/target/workspace.elf section `.text' will not fit in region `APP_FLASH'
/usr/local/gcc-arm-embedded/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: region `APP_FLASH' overflowed by 1776 bytes
collect2: error: ld returned 1 exit status
../build/module.mk:222: recipe for target '/workspace/target/workspace.elf' failed
make: *** [/workspace/target/workspace.elf] Error 1Error: Could not compile. Please review your code.
I’ll flag the Particle folks in case this is an issue on their side.
I can confirm that Blynk library examples do compile on Core, Photon, Electron without problems.
@vshymanskyy, the examples work but when the library is included in an app (other than examples), compiling will fail on a Core when firmware versions 0.6.1-rc.1 or 0.6.1-rc.2 are specified. I had no problems with 0.6.0.
Well, it looks like it’s another library’s or Particle problem then…
Hi @vshymanskyy! … any new about this issue? . i istll get the reported error when compiling from Particle web IDE in case Red Bear Duo is selected as target device. thanks
Please report it to Red Bear. As you can see, it is issue in their platform currently.
OK. thanks