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. Error compiling gateway for esp8266 node mcu(1.0) e12

Error compiling gateway for esp8266 node mcu(1.0) e12

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 6 Posters 5.7k Views 7 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.
  • M mcrahr

    I did a clean install of the arduino IDE, installed the board manager, added the ESP8266 boards, and installed mySensor library.

    But i´m getting these compilation errors

    C:\Users\michael\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
    
     void ets_update_cpu_frequency(uint32_t ticks_per_us);
    
         
    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).
    

    I only took the example, and did a verify.

    Any idea on what the problem is

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

    @mcrahr see if downgrading the esp8266 board definitions to 2.4.1 helps. 2.4.2 was released today, so you're probably the first person to try it.

    M 1 Reply Last reply
    1
    • mfalkviddM mfalkvidd

      @mcrahr see if downgrading the esp8266 board definitions to 2.4.1 helps. 2.4.2 was released today, so you're probably the first person to try it.

      M Offline
      M Offline
      mcrahr
      wrote on last edited by
      #3

      @mfalkvidd
      I will try it out in a few minutes

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcrahr
        wrote on last edited by
        #4

        Spot on correct downgrade to 2.4.1 then it works. Thanks, I did try a downgrade but to 2.2 and that did not work :)

        Br
        Michael

        mfalkviddM 1 Reply Last reply
        0
        • M mcrahr

          Spot on correct downgrade to 2.4.1 then it works. Thanks, I did try a downgrade but to 2.2 and that did not work :)

          Br
          Michael

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

          @mcrahr thanks for confirming. Seems the problem was introduced in this commit: https://github.com/esp8266/Arduino/commit/5d5ea92a4d004ab009d5f642629946a0cb8893dd#diff-c4057a04e4c6a7aa42b62269d3cd13dfL60

          And here is the full error message (OP's post did not include the full error message):

          In file included from R:\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
          
                           from R:\Documents\Arduino\libraries\MySensors\examples\GatewayESP8266MQTTClient\GatewayESP8266MQTTClient.ino:114:
          
          R:\Documents\Arduino\libraries\MySensors/hal/architecture/ESP8266/MyMainESP8266.cpp:57:53: error: declaration of C function 'void ets_update_cpu_frequency(int)' conflicts with
          
           extern "C" void ets_update_cpu_frequency(int freqmhz);
          
                                                               ^
          
          In file included from C:\Users\Micke\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
          
                           from C:\Users\Micke\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
          
                           from C:\Users\Micke\AppData\Local\Temp\ArduinoBuild\sketch\GatewayESP8266MQTTClient.ino.cpp:1:
          
          C:\Users\Micke\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/include/ets_sys.h:218:6: error: previous declaration 'void ets_update_cpu_frequency(uint32_t)' here
          
           void ets_update_cpu_frequency(uint32_t ticks_per_us);
          
                ^
          
          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by mfalkvidd
            #6

            Looks like that commit introduced changes to the following declarations, which are now broken:

            ets_update_cpu_frequency
            esp_yield
            esp_schedule
            init_done()
            __yield
            optimistic_yield
            resetInfo
            user_init
            core_release
            core_version
            

            I have created https://github.com/mysensors/MySensors/issues/1167 to track this problem but I do not understand c++ sufficiently to figure out what needs to be done.

            mfalkviddM 1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              Looks like that commit introduced changes to the following declarations, which are now broken:

              ets_update_cpu_frequency
              esp_yield
              esp_schedule
              init_done()
              __yield
              optimistic_yield
              resetInfo
              user_init
              core_release
              core_version
              

              I have created https://github.com/mysensors/MySensors/issues/1167 to track this problem but I do not understand c++ sufficiently to figure out what needs to be done.

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

              A change for the new board definitions is now available in the development branch and will be included in the next MySensors release (2.3.1 or 2.4.0, version not decided yet)

              sghazaghS 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                A change for the new board definitions is now available in the development branch and will be included in the next MySensors release (2.3.1 or 2.4.0, version not decided yet)

                sghazaghS Offline
                sghazaghS Offline
                sghazagh
                wrote on last edited by sghazagh
                #8

                @mfalkvidd when will be the estimate release date of Mysensors library working with esp8266 v2.4.2?

                Getting compile error if I use 2.4.2 library for Lolin d1 mini pro device....

                Thanks

                mfalkviddM 1 Reply Last reply
                0
                • sghazaghS sghazagh

                  @mfalkvidd when will be the estimate release date of Mysensors library working with esp8266 v2.4.2?

                  Getting compile error if I use 2.4.2 library for Lolin d1 mini pro device....

                  Thanks

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

                  @sghazagh there is currently no planned release date.

                  1 Reply Last reply
                  0
                  • Nca78N Offline
                    Nca78N Offline
                    Nca78
                    Hardware Contributor
                    wrote on last edited by
                    #10

                    I just had the same problem, thank you @mcrahr for reporting and @mfalkvidd for supplying a simple workaround, now my MySensors installation is ready to be relaunched after a loooong break !

                    1 Reply Last reply
                    1
                    • B Offline
                      B Offline
                      Bramz
                      wrote on last edited by
                      #11

                      The problem I am having with compiling the sketch GatewayESP8266 to a NodeMCU board is the same as mentioned by mcrahr in his original post:
                      exit status 1
                      Error compiling for board NodeMCU 1.0 (ESP-12E Module)
                      (and 64 pages of error messages)

                      In my case the environment is:
                      Arduino IDE 1.8.10 on Windows 10 PC
                      MySensors library 2.3.1
                      Board definitions ESP8266 2.6.0

                      As suggested I have downgraded the board definitions to version 2.4.1 but that did not help.
                      Also using the definition GenericESP8266 Module was not successful
                      The simple Blink sketch compiles and uploads without problem.

                      Suggestions for a solution are welcome.

                      mfalkviddM 1 Reply Last reply
                      0
                      • B Bramz

                        The problem I am having with compiling the sketch GatewayESP8266 to a NodeMCU board is the same as mentioned by mcrahr in his original post:
                        exit status 1
                        Error compiling for board NodeMCU 1.0 (ESP-12E Module)
                        (and 64 pages of error messages)

                        In my case the environment is:
                        Arduino IDE 1.8.10 on Windows 10 PC
                        MySensors library 2.3.1
                        Board definitions ESP8266 2.6.0

                        As suggested I have downgraded the board definitions to version 2.4.1 but that did not help.
                        Also using the definition GenericESP8266 Module was not successful
                        The simple Blink sketch compiles and uploads without problem.

                        Suggestions for a solution are welcome.

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

                        @bramz you’ll need 2.4.0, not 2.4.1.

                        Edit: sorry, my bad. 2.4.1 is the confirmed version. Maybe the Arduino IDE must be restarted after downgrading?

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          Bramz
                          wrote on last edited by Bramz
                          #13

                          @mfalkvidd : Thanks for the quick reply. Unfortunately a restart of the Arduino IDE did not solve the problem.
                          I spotted a warning for Arduino IDE 1.8.10 (https://forum.mysensors.org/topic/10763/arduino-ide-1-8-10-warning) and tried 1.8.9 and 1.8.8 but again no luck with these.

                          Are my Tools settings correct?
                          0_1573639107789_ToolsSettings.png

                          R 1 Reply Last reply
                          0
                          • B Bramz

                            @mfalkvidd : Thanks for the quick reply. Unfortunately a restart of the Arduino IDE did not solve the problem.
                            I spotted a warning for Arduino IDE 1.8.10 (https://forum.mysensors.org/topic/10763/arduino-ide-1-8-10-warning) and tried 1.8.9 and 1.8.8 but again no luck with these.

                            Are my Tools settings correct?
                            0_1573639107789_ToolsSettings.png

                            R Offline
                            R Offline
                            Roland Wijnen
                            wrote on last edited by
                            #14

                            @Bramz Hi, have you been able to compile the MySensors NodeManager for this ESP2866 board? I'm having similar problems. I'm now using Arduino IDE 1.8.12, MySensors 2.3.2, NodeManager 1.8. I've tried several versions of the ESP8266 library, but I get different errors with all of them. Have you been able to find a combination that compiles? Thanks in advance.

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              Bramz
                              wrote on last edited by
                              #15

                              Hi Roland, yes in the end I managed to finish compiling without error. I tried with a Windows-10 machine, a Linux Ubuntu laptop and a RaspberryPi-4 and various versions of Arduino IDE, MySensors and NodeManager. Unfortunately, thereafter I got problems running the sketch and because of too little understanding of the NodeManager programming gave up for the time being. I dismantled my setup and cannot remember which combination of soft/hardware gave me compiling success in the end. It now seems that at least part of my problems may be due to the fact that I did not yet have a NRF24L01 hooked up to the ESP8266 so I will give things another try in the future.

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


                              19

                              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