orgua / OneWireHub

OneWire slave device emulator
GNU General Public License v3.0
343 stars 86 forks source link

issues with Wemos D1 Mini #28

Closed toabhishekverma closed 6 years ago

toabhishekverma commented 7 years ago

Hey Guys, I was trying to use this library with Wemos W1 D1 Mini (Basically its ESP8266)

But I got Tons of error. I am new to Arduino and cant understand the error. Can anyone help me to out to find they problem. Here is the error s

Arduino: 1.8.1 (Linux), Board: "WeMos D1 R2 & mini, 80 MHz, 115200, 4M (3M SPIFFS)"

/home/uptopoint/Software/arduino-1.8.1/arduino-builder -dump-prefs -logger=machine -hardware /home/uptopoint/Software/arduino-1.8.1/hardware -tools /home/uptopoint/Software/arduino-1.8.1/tools-builder -tools /home/uptopoint/Software/arduino-1.8.1/hardware/tools/avr -built-in-libraries /home/uptopoint/Software/arduino-1.8.1/libraries -libraries /home/uptopoint/Arduino/libraries -fqbn=esp8266com:esp8266:d1_mini:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -ide-version=10801 -build-path /tmp/arduino_build_13235 -warnings=none -prefs=build.warn_data_percentage=75 -verbose /home/uptopoint/Workspace/OneWireHub/examples/DS2431_EEPROM/DS2431_EEPROM.ino /home/uptopoint/Software/arduino-1.8.1/arduino-builder -compile -logger=machine -hardware /home/uptopoint/Software/arduino-1.8.1/hardware -tools /home/uptopoint/Software/arduino-1.8.1/tools-builder -tools /home/uptopoint/Software/arduino-1.8.1/hardware/tools/avr -built-in-libraries /home/uptopoint/Software/arduino-1.8.1/libraries -libraries /home/uptopoint/Arduino/libraries -fqbn=esp8266com:esp8266:d1_mini:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -ide-version=10801 -build-path /tmp/arduino_build_13235 -warnings=none -prefs=build.warn_data_percentage=75 -verbose /home/uptopoint/Workspace/OneWireHub/examples/DS2431_EEPROM/DS2431_EEPROM.ino Using board 'd1_mini' from platform in folder: /home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266 Using core 'esp8266' from platform in folder: /home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266 WARNING: Spurious .settings folder in 'OneWireHub' library Detecting libraries used... "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "/tmp/arduino_build_13235/sketch/DS2431_EEPROM.ino.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/tmp/arduino_build_13235/sketch/DS2431_EEPROM.ino.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/BAE910.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS18B20.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2401.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2405.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2408.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2413.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2423.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2431.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2433.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2438.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2450.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2502.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2506.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/DS2890.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.cpp" -o "/dev/null" "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireItem.cpp" -o "/dev/null" Generating function prototypes... "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets__ -DICACHE_FLASH -USTRICT_ANSI "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/tmp/arduino_build_13235/sketch/DS2431_EEPROM.ino.cpp" -o "/tmp/arduino_build_13235/preproc/ctags_target_for_gcc_minus_e.cpp" "/home/uptopoint/Software/arduino-1.8.1/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_13235/preproc/ctags_target_for_gcc_minus_e.cpp" Compiling sketch... "/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -USTRICT_ANSI__ "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/lwip/include" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_13235/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DARDUINO=10801 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI" -DESP8266 "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/uptopoint/Software/arduino-1.8.1/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/uptopoint/Arduino/libraries/OneWireHub/src" "/tmp/arduino_build_13235/sketch/DS2431_EEPROM.ino.cpp" -o "/tmp/arduino_build_13235/sketch/DS2431_EEPROM.ino.cpp.o" In file included from /home/uptopoint/Workspace/OneWireHub/examples/DS2431_EEPROM/DS2431_EEPROM.ino:9:0: /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.h: In function 'constexpr uint32_t operator"" _us(long long unsigned int)': /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.h:15:1: error: division by zero is not a constant-expression }; ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.h: In function 'constexpr timeOW_t timeUsToLoops(uint16_t)': /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.h:20:1: error: division by zero is not a constant-expression }; ^ In file included from /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub.h:22:0, from /home/uptopoint/Workspace/OneWireHub/examples/DS2431_EEPROM/DS2431_EEPROM.ino:9: /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h: At global scope: /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:23:57: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_RESET_TIMEOUT = 5000_us; // for not hanging to long in reset-detection, lower value is better for more responsive applications, but can miss resets ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:24:58: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_RESET_MIN[2] = { 430_us, 48_us }; // should be 480 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:24:66: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_RESET_MIN[2] = { 430_us, 48_us }; // should be 480 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:25:58: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_RESET_MAX[2] = { 960_us, 80_us }; // from ds2413 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:25:66: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_RESET_MAX[2] = { 960_us, 80_us }; // from ds2413 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:28:59: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_PRESENCE_TIMEOUT = 20_us; // probe measures 25us, duration of high state between reset and presence ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:29:58: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_PRESENCE_MIN[2] = { 160_us, 8_us }; // was 125 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:29:67: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_PRESENCE_MIN[2] = { 160_us, 8_us }; // was 125 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:30:58: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_PRESENCE_MAX[2] = { 480_us, 32_us }; // should be 280, was 480 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:30:66: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_PRESENCE_MAX[2] = { 480_us, 32_us }; // should be 280, was 480 ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:33:56: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_MSG_HIGH_TIMEOUT = 15000_us; // there can be these inactive / high timeperiods after reset / presence, this value defines the timeout for these ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:34:58: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_SLOT_MAX[2] = { 135_us, 30_us }; // should be 120, measured from falling edge to next falling edge ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:34:66: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_SLOT_MAX[2] = { 135_us, 30_us }; // should be 120, measured from falling edge to next falling edge ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:37:59: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_READ_MIN[2] = { 20_us, 4_us }; // should be 15, was 30, says when it is safe to read a valid bit ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:37:67: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_READ_MIN[2] = { 20_us, 4_us }; // should be 15, was 30, says when it is safe to read a valid bit ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:38:59: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_READ_MAX[2] = { 60_us, 10_us }; // low states (zeros) of a master should not exceed this time in a slot ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:38:66: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_READ_MAX[2] = { 60_us, 10_us }; // low states (zeros) of a master should not exceed this time in a slot ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:39:59: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_WRITE_ZERO[2] = { 30_us, 8_us }; // the hub holds a zero for this long ^ /home/uptopoint/Arduino/libraries/OneWireHub/src/OneWireHub_config.h:39:67: error: 'constexpr uint32_t operator"" _us(long long unsigned int)' called in a constant expression constexpr timeOW_t ONEWIRE_TIME_WRITE_ZERO[2] = { 30_us, 8_us }; // the hub holds a zero for this long ^ Using library OneWireHub at version 2.0.0 in folder: /home/uptopoint/Arduino/libraries/OneWireHub exit status 1 Error compiling for board WeMos D1 R2 & mini.

orgua commented 7 years ago

it looks like a known problem. there are two possible ways for you - try to understand and implement the fixes given in #22 or simply wait until i have some spare time to release a new version with tested code. the esp and its underlying OS is not well suited for timing-applications like this onewirebus

orgua commented 6 years ago

tested hub with a wemos d1 r2, nodeMCU 1.0 ESP-12E and even a esp32 they all work!