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. Difficulties compiling Nodemcu 1.0 (ESP-12 module) as a 8266 Gateway.

Difficulties compiling Nodemcu 1.0 (ESP-12 module) as a 8266 Gateway.

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 65 Views 4 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.
  • R Offline
    R Offline
    ramwal
    wrote on last edited by
    #1

    Some time ago with an older Mysensors Library (I don't remember which) I had a working Gateway based on this board. Now i want to give this gateway a new live, but I have compile problems I cannot solve. I miss the knowledge to get it solved. I tried some things, however without success!

    My environment is completely standard so:

    • Arduino ide: 1.8.12

    • Mysensors Library: 2.3.2

    • Board ESP8266: version 2.6.3

    • Sketch: ESP8286 wifi example completely standard; only ssid and password changed

    1. Compiling gave this error:
      fork/exec /Users/robertus/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3: no such file or directory
      Error compiling for board NodeMCU 1.0 (ESP-12E Module).

    Then I red somewhere to use board ESP8266 version: 2.5.2, so I loaded this version of ESP8266 board also, then:

    1. Compiling gave now this error:
      Arduino: 1.8.12 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

    In file included from /Users/robertus/Documents/Arduino/libraries/MySensors/MySensors.h:441:0,
    from /Users/robertus/Documents/Arduino/GatewayESP8266-New/GatewayESP8266-New.ino:114:
    /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
    /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:102:36: error: 'run_scheduled_recurrent_functions' was not declared in this scope
    run_scheduled_recurrent_functions();
    ^
    /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: At global scope:
    /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:140:27: error: expected initializer before 'ets_intr_lock'
    extern "C" void IRAM_ATTR ets_intr_lock()
    ^
    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    Can somebody shed some light on this and hopefully has a solution, because I am stuck.

    Questions:

    1. Can error 1 be solved? Probably not a my sensors thing!
    2. Why is the board version 2.5.2 of ESP giving these errors?
    3. Is there a combination of software versions, that work?

    I appreciate any help. Thanks

    mfalkviddM 1 Reply Last reply
    0
    • electrikE Offline
      electrikE Offline
      electrik
      wrote on last edited by
      #2

      For the third, could you try 2.4.2 ESP library?

      1 Reply Last reply
      0
      • R ramwal

        Some time ago with an older Mysensors Library (I don't remember which) I had a working Gateway based on this board. Now i want to give this gateway a new live, but I have compile problems I cannot solve. I miss the knowledge to get it solved. I tried some things, however without success!

        My environment is completely standard so:

        • Arduino ide: 1.8.12

        • Mysensors Library: 2.3.2

        • Board ESP8266: version 2.6.3

        • Sketch: ESP8286 wifi example completely standard; only ssid and password changed

        1. Compiling gave this error:
          fork/exec /Users/robertus/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3: no such file or directory
          Error compiling for board NodeMCU 1.0 (ESP-12E Module).

        Then I red somewhere to use board ESP8266 version: 2.5.2, so I loaded this version of ESP8266 board also, then:

        1. Compiling gave now this error:
          Arduino: 1.8.12 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

        In file included from /Users/robertus/Documents/Arduino/libraries/MySensors/MySensors.h:441:0,
        from /Users/robertus/Documents/Arduino/GatewayESP8266-New/GatewayESP8266-New.ino:114:
        /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: In function 'void esp_yield_within_cont()':
        /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:102:36: error: 'run_scheduled_recurrent_functions' was not declared in this scope
        run_scheduled_recurrent_functions();
        ^
        /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp: At global scope:
        /Users/robertus/Documents/Arduino/libraries/MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:140:27: error: expected initializer before 'ets_intr_lock'
        extern "C" void IRAM_ATTR ets_intr_lock()
        ^
        exit status 1
        Error compiling for board NodeMCU 1.0 (ESP-12E Module).

        This report would have more information with
        "Show verbose output during compilation"
        option enabled in File -> Preferences.

        Can somebody shed some light on this and hopefully has a solution, because I am stuck.

        Questions:

        1. Can error 1 be solved? Probably not a my sensors thing!
        2. Why is the board version 2.5.2 of ESP giving these errors?
        3. Is there a combination of software versions, that work?

        I appreciate any help. Thanks

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        @ramwal the release notes for MySensors 2.3.2 has the following:

        Important information:

        If you encounter compilation issues, update your board definitions:

        AVR 1.8.2
        ESP8266 2.6.2

        Maybe give 2.6.2 of esp8266 a try?

        R 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @ramwal the release notes for MySensors 2.3.2 has the following:

          Important information:

          If you encounter compilation issues, update your board definitions:

          AVR 1.8.2
          ESP8266 2.6.2

          Maybe give 2.6.2 of esp8266 a try?

          R Offline
          R Offline
          ramwal
          wrote on last edited by
          #4

          @mfalkvidd, @electrik

          Thank you for the hints. After have been looking further on the internet involving the compile problem and found the solution, that worked for me.link text.
          I inform you that it is Mac OSX python problem in the installed python version on my Mac, a broken link to the python executable.

          I simply installed the newest version 3.8.2 Python on my laptop Mac and the problem disappeared.

          So, everything is working now with all the latest firmwares (see above).

          mfalkviddM rvendrameR 2 Replies Last reply
          1
          • R ramwal

            @mfalkvidd, @electrik

            Thank you for the hints. After have been looking further on the internet involving the compile problem and found the solution, that worked for me.link text.
            I inform you that it is Mac OSX python problem in the installed python version on my Mac, a broken link to the python executable.

            I simply installed the newest version 3.8.2 Python on my laptop Mac and the problem disappeared.

            So, everything is working now with all the latest firmwares (see above).

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #5

            Nice work @ramwal
            Thanks for reporting back.

            1 Reply Last reply
            0
            • R ramwal

              @mfalkvidd, @electrik

              Thank you for the hints. After have been looking further on the internet involving the compile problem and found the solution, that worked for me.link text.
              I inform you that it is Mac OSX python problem in the installed python version on my Mac, a broken link to the python executable.

              I simply installed the newest version 3.8.2 Python on my laptop Mac and the problem disappeared.

              So, everything is working now with all the latest firmwares (see above).

              rvendrameR Offline
              rvendrameR Offline
              rvendrame
              Hero Member
              wrote on last edited by
              #6

              @ramwal Thanks for the hint, it made the trick here too!

              Home Assistant / Vera Plus UI7
              ESP8266 GW + mySensors 2.3.2
              Alexa / Google Home

              1 Reply Last reply
              1
              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