-
-
Notifications
You must be signed in to change notification settings - Fork 97
VSC - PlatformIO building error #4
Comments
Ticker is a standard library is standard in the ESP8266/Arduno (see https://github.com/esp8266/Arduino/tree/master/libraries/Ticker). It looks like your PlatformIO has gone and grabbed https://github.com/sstaub/Ticker. Check your platformio.ini, scrub your .piolibdeps and try again. |
Hi Paul,
|
Ah, I've seen this problem before on non-US locales. It may be the backslashes tripping up the compiler in the PROJECT_CMDS definition. There's a few open issues on this topic. Try making it a single line and see if that compiles correctly. For example in boiler.ino |
I removed all backslashes from the #define PROJECT_CMDS definition and nothing changed. The same error in: Line 87 and next: // default values // logging - EMS_SYS_LOGGING_VERBOSE, EMS_SYS_LOGGING_NONE, EMS_SYS_LOGGING_BASIC (see ems.h) // shower settings |
sorry no idea what the problem could be. The code is very simple, so try process of elimination until you find which line or code block is causing the errors. |
Hi Paul, I have found that there is something wrong with the // public libraries defined in boiler.ino and these defined in platformio.ini. - lib_deps. Could you please reupload all the files used in platformio project building especially platformio.ini ? I added the "PubSubClient" library defined in boiler.ino code below Now the errors are gone but have new one below:
Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)Verbose mode can be enabled via ======================================================================================================= [SUMMARY] ======================================================================================================= Terminal will be reused by tasks, press any key to close it. |
I'm not sure why its not working. I took a new laptop with windows10,
installed VSCode and Platformio, downloaded the files from my GitHub and it
builds correctly. PlatforrmIO should be able to find the correct libraries
and download them. Which OS are you running on?
…On Sat, Sep 29, 2018 at 8:04 PM blacksocket ***@***.***> wrote:
Hi Paul, I have found that there is something wrong with the // public
libraries and defined in platformio.ini. lib_deps. Could you please
reupload all the files used in platformio project building especially
platformio.ini ?
I added the library defined in boiler.ino code below
// public libraries
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#include <CRC32.h> // https://github.com/bakercp/CRC32
*#include *
Now the errors are gone but have new one below:
Executing task in folder EMS-ESP-Boiler:
C:\Users\tomas.WINDOWS-9P5QTO1.platformio\penv\Scripts\platformio.exe run <
Processing d1_mini (platform: espressif8266; board: d1_mini; framework:
arduino)
Verbose mode can be enabled via -v, --verbose option
PLATFORM: Espressif 8266 > WeMos D1 R2 & mini
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting boiler.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.5
|-- 2.6
|-- 5.13.2
|-- 1.0
|-- 2.0.0
|-- 1.0
| |-- 1.0
| |--
| | |-- 1.0
|--
| |-- 1.0
|-- 3.1.4
Compiling .pioenvs\d1_mini\src\ESPHelper.cpp.o
Compiling .pioenvs\d1_mini\src\ems.cpp.o
Compiling .pioenvs\d1_mini\src\emsuart.cpp.o
Generating LD script .pioenvs\d1_mini\ld\eagle.app.v6.common.ld
Compiling .pioenvs\d1_mini\lib784\Time_ID44\DateStrings.cpp.o
Compiling .pioenvs\d1_mini\lib784\Time_ID44\Time.cpp.o
Compiling .pioenvs\d1_mini\libd19\PubSubClient_ID89\PubSubClient.cpp.o
Archiving .pioenvs\d1_mini\lib35b\libArduinoJson_ID64.a
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\CertStoreBearSSL.cpp.o
Archiving .pioenvs\d1_mini\lib784\libTime_ID44.a
Archiving .pioenvs\d1_mini\libd19\libPubSubClient_ID89.a
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClient.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClientSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServer.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServerSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiUdp.cpp.o
Compiling .pioenvs\d1_mini\lib56c\CRC32\CRC32.cpp.o
Compiling .pioenvs\d1_mini\lib402\ESP8266mDNS\ESP8266mDNS.cpp.o
Compiling .pioenvs\d1_mini\libbe9\ArduinoOTA\ArduinoOTA.cpp.o
Archiving .pioenvs\d1_mini\libef2\libESP8266WiFi.a
Compiling .pioenvs\d1_mini\lib15a\Ticker_ID1586\Ticker.cpp.o
Archiving .pioenvs\d1_mini\lib56c\libCRC32.a
Archiving .pioenvs\d1_mini\libFrameworkArduinoVariant.a
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp-version.cpp.o
Archiving .pioenvs\d1_mini\lib15a\libTicker_ID1586.a
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp.cpp.o
Archiving .pioenvs\d1_mini\libbe9\libArduinoOTA.a
Compiling .pioenvs\d1_mini\FrameworkArduino\FS.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\FunctionalInterrupt.cpp.o
Archiving .pioenvs\d1_mini\lib402\libESP8266mDNS.a
Compiling .pioenvs\d1_mini\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\IPAddress.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\MD5Builder.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Print.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Schedule.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\ScheduledFunctions.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Stream.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\StreamString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Tone.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Updater.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WMath.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\abi.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\base64.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cbuf.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont.S.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont_util.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_eboot_command.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_flash_utils.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_i2s.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_main.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_noniso.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_phy.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_postmortem.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_si2c.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_sigma_delta.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_timer.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_waveform.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_analog.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_digital.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pulse.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pwm.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_shift.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\debug.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\gdb_hooks.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\heap.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cdecode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cencode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libc_replacements.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\pgmspace.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\sntp-lwip2.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_cache.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_check.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_gc.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_hydrogen.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_nucleus.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_api.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_hal.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\time.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\uart.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\umm_malloc\umm_malloc.c.o
Archiving .pioenvs\d1_mini\libFrameworkArduino.a
Linking .pioenvs\d1_mini\firmware.elf
.pioenvs\d1_mini\libFrameworkArduino.a(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x4):
undefined reference to setup'
.pioenvs\d1_mini\libFrameworkArduino.a(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x8):
undefined reference toloop'
*.pioenvs\d1_mini\libFrameworkArduino.a(core_esp8266_main.cpp.o): In
function loop_wrapper()':
core_esp8266_main.cpp:(.text._ZL12loop_wrapperv+0x21): undefined reference
tosetup' core_esp8266_main.cpp:(.text._ZL12loop_wrapperv+0x2d): undefined
reference to `loop'*
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\d1_mini\firmware.elf] Error 1
==============================================================================================
[ERROR] Took 30.81 seconds
==============================================================================================
=======================================================================================================
[SUMMARY]
=======================================================================================================
Environment nodemcuv2 [SKIP]
Environment d1_mini [ERROR]
==============================================================================================
[ERROR] Took 30.85 seconds
==============================================================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeC-nNYbSOsNub6cUuMfuLA_HQW70ks5uf7Y1gaJpZM4W-l6e>
.
|
I am using also win 10. I will try to switch to English locale and reinstall VSCode and Platformio and buid it again and I will let you know if this helps. Thanks Paul! |
Hi Paul, I am still having issues. I described below step by step what I did. Maybe you see what I am doing wrong ?
[platformio] [common] [env:d1_mini]
|
Tomas, this is very strange indeed. I did a fresh install again on a win10 using my github instructions and compared the output during the build which turned out to be the same as yours, except it compiles correctly with no errors or warnings. The only easy easy to debug this is by trial and error, starting by removing lines to find where in the code its breaking. My recent github changes to the code are not related by the way. So I suggest renaming the boiler.ino (eg. to boiler.backup) and replacing the code in boiler.ino with this to see if it compiles:
let me know.... |
Hi Paul, I tested this code on Win 10 and Win7 and it works fine. The code compiled successfully:
Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)Verbose mode can be enabled via ======================================================================================================= [SUMMARY] ======================================================================================================= Terminal will be reused by tasks, press any key to close it. |
next add all the #DEFINE's after the "int connectionStatus;" line and
compile again...
…On Thu, Oct 4, 2018 at 1:39 PM blacksocket ***@***.***> wrote:
Hi Paul,
I tested this code on Win 10 and Win7 and it works fine. The code compiled
successfully:
Executing task in folder EMS-ESP-Boiler:
C:\Users\tomas.WINDOWS-9P5QTO1.platformio\penv\Scripts\platformio.exe run <
Processing d1_mini (platform: espressif8266; board: d1_mini; framework:
arduino)
Verbose mode can be enabled via -v, --verbose option
PLATFORM: Espressif 8266 > WeMos D1 R2 & mini
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting boiler.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.5
|-- 2.6
|-- 5.13.2
|-- 1.0
|-- 1.0
|-- 2.0.0
|-- 1.0
| |--
| | |-- 1.0
| |-- 1.0
|--
| |-- 1.0
Compiling .pioenvs\d1_mini\src\boiler.ino.cpp.o
Compiling .pioenvs\d1_mini\lib13a\Time_ID44\DateStrings.cpp.o
Compiling .pioenvs\d1_mini\lib13a\Time_ID44\Time.cpp.o
Compiling .pioenvs\d1_mini\lib80b\PubSubClient_ID89\PubSubClient.cpp.o
Archiving .pioenvs\d1_mini\libd89\libArduinoJson_ID64.a
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\BearSSLHelpers.cpp.o
Archiving .pioenvs\d1_mini\lib13a\libTime_ID44.a
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\CertStoreBearSSL.cpp.o
Archiving .pioenvs\d1_mini\lib80b\libPubSubClient_ID89.a
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClient.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClientSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServer.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServerSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\libef2\ESP8266WiFi\WiFiUdp.cpp.o
Compiling .pioenvs\d1_mini\lib0bd\Ticker\Ticker.cpp.o
Compiling .pioenvs\d1_mini\lib9de\CRC32_ID1202\CRC32.cpp.o
Compiling .pioenvs\d1_mini\lib402\ESP8266mDNS\ESP8266mDNS.cpp.o
Archiving .pioenvs\d1_mini\lib0bd\libTicker.a
Archiving .pioenvs\d1_mini\libef2\libESP8266WiFi.a
Compiling .pioenvs\d1_mini\libbe9\ArduinoOTA\ArduinoOTA.cpp.o
Archiving .pioenvs\d1_mini\libFrameworkArduinoVariant.a
Archiving .pioenvs\d1_mini\lib9de\libCRC32_ID1202.a
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp-version.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp.cpp.o
Archiving .pioenvs\d1_mini\lib402\libESP8266mDNS.a
Compiling .pioenvs\d1_mini\FrameworkArduino\FS.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\FunctionalInterrupt.cpp.o
Archiving .pioenvs\d1_mini\libbe9\libArduinoOTA.a
Compiling .pioenvs\d1_mini\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\IPAddress.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\MD5Builder.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Print.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Schedule.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\ScheduledFunctions.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Stream.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\StreamString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Tone.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Updater.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WMath.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\abi.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\base64.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cbuf.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont.S.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont_util.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_eboot_command.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_flash_utils.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_i2s.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_main.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_noniso.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_phy.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_postmortem.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_si2c.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_sigma_delta.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_timer.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_waveform.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_analog.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_digital.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pulse.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pwm.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_shift.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\debug.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\gdb_hooks.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\heap.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cdecode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cencode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libc_replacements.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\pgmspace.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\sntp-lwip2.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_cache.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_check.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_gc.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_hydrogen.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_nucleus.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_api.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_hal.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\time.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\uart.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\umm_malloc\umm_malloc.c.o
Archiving .pioenvs\d1_mini\libFrameworkArduino.a
Linking .pioenvs\d1_mini\firmware.elf
Building .pioenvs\d1_mini\firmware.bin
Retrieving maximum program size .pioenvs\d1_mini\firmware.elf
Checking size .pioenvs\d1_mini\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [===== ] 45.4% (used 37224 bytes from 81920 bytes)
PROGRAM: [=== ] 34.4% (used 359496 bytes from 1044464 bytes)
=============================================================================================
[SUCCESS] Took 26.49 seconds
=============================================================================================
=======================================================================================================
[SUMMARY]
=======================================================================================================
Environment nodemcuv2 [SKIP]
Environment d1_mini [SUCCESS]
=============================================================================================
[SUCCESS] Took 26.50 seconds
=============================================================================================
Terminal will be reused by tasks, press any key to close it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeGNFYBarot1kGWAMKRBGWaf1isSVks5uhfNrgaJpZM4W-l6e>
.
|
I added all #define after the "int connectionStatus;" line from the previous boiler.ino code below and now getting this error (see screenshot): // timers, all values are in seconds #define PROJECT_CMDS // GPIOs // hostname is also used as the MQTT topic identifier (home/) // app specific - do not change #define TOPIC_THERMOSTAT_TEMP MQTT_BOILER "thermostat_temp" // for received thermostat temp changes #define TOPIC_BOILER_DATA MQTT_BOILER "boiler_data" // for sending boiler values #define TOPIC_SHOWERTIME MQTT_BOILER "showertime" // for sending shower time results // default values // logging - EMS_SYS_LOGGING_VERBOSE, EMS_SYS_LOGGING_NONE, EMS_SYS_LOGGING_BASIC (see ems.h) |
Start deleting the #define lines block by block until it compiles. Starting
with project_cmds
…On Thu, 4 Oct 2018 at 17:05, blacksocket ***@***.***> wrote:
I added all #define from the previous boiler.ino code and now getting this:
[image: image]
<https://user-images.githubusercontent.com/13651344/46483361-bdcd5480-c7f7-11e8-8a47-772f3a5a697d.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeKvZxgAvKwYq4dmdPkNJGoqSIpG3ks5uhiPUgaJpZM4W-l6e>
.
|
After deleting PROJECT_CMDS code built successfully: #define PROJECT_CMDS |
err - didn't I warn you about that a week ago? |
Yes, I was trying to delete backslashes "\n\r" etc. from the PROJECT_CMDS and build without success. Also I tried to build it on the Windows with English locale because you told me that you installed Platformio from scratch, downloaded the code and it works. That is why I thought that there is something wrong with my PIO environment. Now I am trying compile it again: |
blacksocket: try removing the \ backslash continuation characters at the end of lines 45 - 58 and concatenating the commands on one long line. This worked for me. Keep the backslashes (\n\r) in each of the individual command strings. |
thanks @mrfixit1 I think I'll re-write that piece since this is causing problems on some environments |
Hi mrfixit1, thanks for your help! Do you mean concatenate them including all of the quotation marks like this ? |
Yes |
Looks like you deleted the #define PROJECT_CMDS at the start of line 45, try putting it back |
#define PROJECT_CMDS is still there i just show the message that covers the define in line 44. Ach ok, so you mean all of them in one line including define.. |
Indeed it works for me too!!! ;-)) Thanks mrfixit1! Thank you ALL for your help! |
New line = new statement, unless there is a continuation \ to join them, which in our cases does not work.... |
@mrfixit1 @blacksocket I improved the code to make the command list dynamic and avoid the compile errors. I also added a new function 'h' to list which commands are available. |
Hi Paul, I have just one question. What kind of EMS address (Transmitter ID ) are you using to simulate Buderus Controler in this program ? Is this Buderus Service Key with the Address 0x0B ? I am asking because when I connected Wemos to the EMS circuit I am getting a message "(00:02:08) Didn't receive acknowledgement from the 0xa8, so resending (attempt #1/4)...". I am not sure if this is caused by the electronic circuit itself or by the software. By the way I have Buderus Logamax Plus GB072-20 heating system and I am using RC 300 controler in my house, so I am not sure if the Destination ID is also the same as yours. |
Yes x0B for our device. I explain this in detail in my readme. When you
have everything connected turn on verbose messaging with ‘v 2’ to see the
incoming telegrams. It’ll tell you what is broadcasting on the ems bus. A8
is probably not compatible with your thermostat (not boiler). Just comment
out that call.
…On Mon, 8 Oct 2018 at 00:56, Tomas ***@***.***> wrote:
Hi Paul, I have just one question. What kind of address are you using to
simulate Buderus Controler in this program ? Is this Buderus Service Key
with the Address 0x0B ? I am asking because when I connected Wemos to the
EMS circuit I am getting a message "(00:02:08) Didn't receive
acknowledgement from the 0xa8, so resending (attempt #1
<#1)...". I am not sure
if this is caused by the electronic circuit itself or by the software. I am
using RC 300 in my house.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeKok7GI8W2ubaIQO9y-tmQ2G_hV2ks5uioaygaJpZM4W-l6e>
.
|
great, looks like its working. Did you get messages from your thermostat
too?
…On Tue, Oct 9, 2018 at 3:20 PM Tomas ***@***.***> wrote:
Paul, "v 2" works for me:
[image: image]
<https://user-images.githubusercontent.com/13651344/46672090-d7471580-cbd6-11e8-838b-813979ec1b93.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeIA4lOKeCSvsimXndkJyJTNOH1PUks5ujKKagaJpZM4W-l6e>
.
|
yes it is working, however I did not get messages from my thermostat.. |
That's strange, I double checked the code it should print out anything that lands on the bus. Your thermostat should be sending out signals all the time. Check how your connecting to the bus and that your thermostat is still working correctly. It could also be the circuit (not sure which one you're using) |
Hi proddy, I use susisstrolch board, without powering circuit (I use stand-alone 5V power supply, tried 3.3V too). |
It looks like sending is not working. I remember Jeurgen's boards wern't
designed to also transmit. How are you powering the ESP? The ESP8266 takes
a lot of current when doing a Tx (>300mA).
…On Sun, Oct 28, 2018 at 5:18 PM mareksugar ***@***.***> wrote:
Hi proddy,
first of all, thank you for a lot of work which you did with this project.
Secondly, sorry that I didn’t open new tread, but this one is related to
my problem - receiving response messages.
Reading boilers broadcast messages is working without problem.
After week of trying, I have no idea where the problem is.
After every poll message I receive last 2 bytes of it (like echo), but
without answer from boiler.
Something what you describe here:
susisstrolch/EMS-ESP12#2
<susisstrolch/EMS-ESP12#2>
I use susisstrolch board, without powering circuit (I use stand-alone 5V
power supply, tried 3.3V too).
On EMS bus I have boiler only, without thermostat (I want to control
boiler power with UBASollwerte/UBASetpoints -1a message).
Do you have any idea what could be a problem? I check few times my
hardware connection.
[image: image]
<https://user-images.githubusercontent.com/33668626/47618604-6314d900-dad5-11e8-9831-ec257b239d4d.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeOrX3u5OETrOHvDUtLkFN21EX5ZVks5updjOgaJpZM4W-l6e>
.
|
His schematic is same as your , only LM393 has compactator. |
I really don't know what the problem is then if you say you're not using the buck converter to drive the ESP8266 like in Juergen's board. There are others that have used my library with this board so I'm assuming it works. I can only state it works fine with esp8266 dev boards as mentioned in my doc. As this issue is related to platformio compile errors, please open a new issue where we can track status. |
Had the same problem and it occured when I put into platformio.ini "ticker" with a version For me it solved to delete the complete folder . |
I had the same problem. Did 2 things:
|
Hi Paul,
I am trying to build d1_mini firmware on PlatformIO according to your procedure and platformio.ini-example but unfortunately I am getting an error message below. Do you know what could be the issue ? "class "Ticker" has no member "attach"
Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
PackageManager: Installing tool-mkspiffs @ ~1.200.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
PackageManager: Installing tool-espotapy @ ~1.1.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Verbose mode can be enabled via
-v, --verbose
optionPLATFORM: Espressif 8266 > NodeMCU 1.0 (ESP-12E Module)
SYSTEM: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting boiler.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.5
|-- 2.6
|-- 5.13.2
|-- 2.0.0
|-- 1.0
|-- 1.0
| |-- 1.0
| |--
| | |-- 1.0
|--
| |-- 1.0
|-- 3.1.4
Compiling .pioenvs\nodemcuv2\src\boiler.ino.cpp.o
Compiling .pioenvs\nodemcuv2\libef2\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\nodemcuv2\libef2\ESP8266WiFi\ESP8266WiFiMulti.cpp.oC:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:65:8: error: no matching function for call to 'Ticker::Ticker()'
^C
ompiling .pioenvs\nodemcuv2\libef2\ESP8266WiFi\ESP8266WiFiSTA.cpp.oC
:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:65:8: note: candidates are:Compiling .pioenvs\nodemcuv2\libef2\ESP8266WiFi\ESP8266WiFiScan.cpp.o
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:37:0:
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: Ticker::Ticker(fptr, uint32_t, uint16_t, resolution_t)
Ticker(fptr callback, uint32_t timer, uint16_t repeat = 0, resolution_t resolution = MICROS);
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: candidate expects 4 arguments, 0 provided
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: constexpr Ticker::Ticker(const Ticker&)
class Ticker {
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:67:8: error: no matching function for call to 'Ticker::Ticker()'
#define HOSTNAME "raspberrypi"
^
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:67:8: note: candidates are:
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:37:0:
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: Ticker::Ticker(fptr, uint32_t, uint16_t, resolution_t)
Ticker(fptr callback, uint32_t timer, uint16_t repeat = 0, resolution_t resolution = MICROS);
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: candidate expects 4 arguments, 0 provided
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: constexpr Ticker::Ticker(const Ticker&)
class Ticker {
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:69:8: error: no matching function for call to 'Ticker::Ticker()'
// app specific - do not change
^
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:69:8: note: candidates are:
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:37:0:
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: Ticker::Ticker(fptr, uint32_t, uint16_t, resolution_t)
Ticker(fptr callback, uint32_t timer, uint16_t repeat = 0, resolution_t resolution = MICROS);
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: candidate expects 4 arguments, 0 provided
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: constexpr Ticker::Ticker(const Ticker&)
class Ticker {
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:71:8: error: no matching function for call to 'Ticker::Ticker()'
#define TOPIC_START MQTT_BOILER MQTT_TOPIC_START
^
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:71:8: note: candidates are:
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:37:0:
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: Ticker::Ticker(fptr, uint32_t, uint16_t, resolution_t)
Ticker(fptr callback, uint32_t timer, uint16_t repeat = 0, resolution_t resolution = MICROS);
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: candidate expects 4 arguments, 0 provided
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: constexpr Ticker::Ticker(const Ticker&)
class Ticker {
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:73:8: error: no matching function for call to 'Ticker::Ticker()'
#define TOPIC_THERMOSTAT_TEMP MQTT_BOILER "thermostat_temp" // for received thermostat temp changes
^
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:73:8: note: candidates are:
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:37:0:
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: Ticker::Ticker(fptr, uint32_t, uint16_t, resolution_t)
Ticker(fptr callback, uint32_t timer, uint16_t repeat = 0, resolution_t resolution = MICROS);
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:61:2: note: candidate expects 4 arguments, 0 provided
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: constexpr Ticker::Ticker(const Ticker&)
class Ticker {
^
C:\Users\tomas.platformio\lib\Ticker_ID1586/Ticker.h:49:7: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:87:5: error: expected unqualified-id before string constant
// default values
^
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino: In function 'void setup()':
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1345:20: error: 'class Ticker' has no member named 'attach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1353:24: error: 'class Ticker' has no member named 'attach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1355:22: error: 'class Ticker' has no member named 'attach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1357:25: error: 'class Ticker' has no member named 'attach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1391:50: error: no matching function for call to 'ESPHelper::consoleSetHelpProjectsCmds()'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1391:50: note: candidate is:
In file included from C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:19:0:
src\ESPHelper.h:80:12: note: void ESPHelper::consoleSetHelpProjectsCmds(String)
void consoleSetHelpProjectsCmds(String help);
^
src\ESPHelper.h:80:12: note: candidate expects 1 argument, 0 provided
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino: In function 'void _showerColdShotStart()':
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1527:29: error: 'class Ticker' has no member named 'attach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino: In function 'void _showerColdShotStop()':
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1545:33: error: 'class Ticker' has no member named 'detach'
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino: In function 'void loop()':
C:/Users/tomas/EMS-ESP-Boiler/src/boiler.ino:1725:98: error: 'SHOWER_PAUSE_TIME' was not declared in this scope
*** [.pioenvs\nodemcuv2\src\boiler.ino.cpp.o] Error 1
=============================================================================================== [ERROR] Took 7.20 seconds ===============================================================================================
======================================================================================================= [SUMMARY] =======================================================================================================
Environment nodemcuv2 [ERROR]
Environment d1_mini [SKIP]
=============================================================================================== [ERROR] Took 7.21 seconds ===============================================================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
The text was updated successfully, but these errors were encountered: