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. Hardware
  3. WIFI Gateway using ESP8266 error during compile

WIFI Gateway using ESP8266 error during compile

Scheduled Pinned Locked Moved Hardware
5 Posts 2 Posters 1.2k 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.
  • J Offline
    J Offline
    jhussain
    wrote on last edited by
    #1

    I am trying to setup Building a WiFi Gateway using ESP8266 and followed the instructions carefully. When I tried to compile using Arduino IDE 1.9.0, I get the following error: exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module ).
    Please help what is missing or what I am doing wrong?

    Arduino: 1.9.0-beta (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

    In file included from C:\Users\Javed\OneDrive\Documents\MySensors-master\libraries\MySensors/MySensors.h:420:0,

                 from C:\Users\Javed\OneDrive\Documents\MySensors-master\MySensors-master\examples\GatewayESP8266\GatewayESP8266.ino:118:
    

    C:\Users\Javed\OneDrive\Documents\MySensors-master\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\Javed\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,

                 from C:\Users\Javed\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
    
                 from sketch\GatewayESP8266.ino.cpp:1:
    

    C:\Users\Javed\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);

      ^
    

    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module )

    mfalkviddM 1 Reply Last reply
    0
    • J jhussain

      I am trying to setup Building a WiFi Gateway using ESP8266 and followed the instructions carefully. When I tried to compile using Arduino IDE 1.9.0, I get the following error: exit status 1
      Error compiling for board NodeMCU 1.0 (ESP-12E Module ).
      Please help what is missing or what I am doing wrong?

      Arduino: 1.9.0-beta (Windows 8.1), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

      In file included from C:\Users\Javed\OneDrive\Documents\MySensors-master\libraries\MySensors/MySensors.h:420:0,

                   from C:\Users\Javed\OneDrive\Documents\MySensors-master\MySensors-master\examples\GatewayESP8266\GatewayESP8266.ino:118:
      

      C:\Users\Javed\OneDrive\Documents\MySensors-master\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\Javed\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,

                   from C:\Users\Javed\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:256,
      
                   from sketch\GatewayESP8266.ino.cpp:1:
      

      C:\Users\Javed\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);

        ^
      

      exit status 1
      Error compiling for board NodeMCU 1.0 (ESP-12E Module )

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

      @jhussain see earlier answers here

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jhussain
        wrote on last edited by
        #3

        I went through the replies as pointed out but none solve the issue.

        I tried to close Arduino IDE 1.9.0 and start all over again but get the same compilation error.
        Any comprehensive solution will be appreciated.

        I can compile examples in IDE and they all run OK, so I do not think I have any hardware/software issue with IDE.

        Thanks.

        mfalkviddM 1 Reply Last reply
        0
        • J jhussain

          I went through the replies as pointed out but none solve the issue.

          I tried to close Arduino IDE 1.9.0 and start all over again but get the same compilation error.
          Any comprehensive solution will be appreciated.

          I can compile examples in IDE and they all run OK, so I do not think I have any hardware/software issue with IDE.

          Thanks.

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

          @jhussain downgrading the esp8266 board files to version 2.4.1 did not help?

          J 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @jhussain downgrading the esp8266 board files to version 2.4.1 did not help?

            J Offline
            J Offline
            jhussain
            wrote on last edited by
            #5

            @mfalkvidd You mean I should try 2.4.1? I will do that today or so and report back.

            Thanks.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            10

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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