Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. MyHwESP8266.cpp:21:20: fatal error: EEPROM.h: No such file or directory #include <EEPROM.h>

MyHwESP8266.cpp:21:20: fatal error: EEPROM.h: No such file or directory #include <EEPROM.h>

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DinnocD Offline
    DinnocD Offline
    Dinnoc
    wrote on last edited by
    #1

    I am trying to compile the MockMySensors on arduino 1.6.4 for ESP8266
    I keep getting the error below.

    Strangely when i compile the GatewayESP8266 module which has an #include <EEPROM.h>, it compiles and runs just fine.
    Can anyone help???

    Verbose errors

    Arduino: 1.6.4 (Windows 8), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

    Build options changed, rebuilding all

    Using library SPI in folder: C:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI

    Using library MySensors in folder: C:\Users\dinnissj\Documents\Arduino\libraries\MySensors

    C:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include -IC:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include -IC:\Users\dinnissj\AppData\Local\Temp\build6451806607044567628.tmp/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=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_ESP01" -DESP8266 -IC:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266 -IC:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\variants\generic -IC:\Users\dinnissj\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\SPI -IC:\Users\dinnissj\Documents\Arduino\libraries\MySensors C:\Users\dinnissj\AppData\Local\Temp\build6451806607044567628.tmp\MockMySensors.cpp -o C:\Users\dinnissj\AppData\Local\Temp\build6451806607044567628.tmp\MockMySensors.cpp.o

    In file included from C:\Users\dinnissj\Documents\Arduino\libraries\MySensors/MySensors.h:67:0,
    from MockMySensors.ino:19:
    C:\Users\dinnissj\Documents\Arduino\libraries\MySensors/core/MyHwESP8266.cpp:21:20: fatal error: EEPROM.h: No such file or directory
    #include <EEPROM.h>
    ^
    compilation terminated.
    Error compiling.

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      You should be able to remove that include.

      https://github.com/mysensors/MySensors/pull/555

      1 Reply Last reply
      0
      • DinnocD Offline
        DinnocD Offline
        Dinnoc
        wrote on last edited by
        #3

        Thanks

        i actually just reinstalled arduino from version 1.6.4 to current version 1.6.9 i think and it seemed to fix the issue.

        I do still have an error with the mymocksensors example sketch though that it doesnt compile with a series of 'function xx is ambiguous' looks like a duplicate reference somewhere. Ill generate the error and post the information

        Cheers

        James

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        22

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular