-
Notifications
You must be signed in to change notification settings - Fork 58
Error compiling for board Generic ESP8266 Module. #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need the latest git version of the esp8266 arduino core. I recently made changes to lwip there that have not made it to release yet :) |
I'm facing this same issues and ive only just downloaded it today |
Then the answer will probably be the same. Unfortunately I don't know how to use the git version so I'll probably have to wait until it moves to staged, or the next release. I don't have time to learn how git works at this time. |
using git version is pretty straight-forward :) https://github.com/esp8266/Arduino#using-git-version |
Just to report in: On platformio it doesn't work with |
Hello,
First with : I can't really understand where i get wrong. Ok found how to get it work , i downloaded the latest git version and write over 2.3 rc2 arduinos folder . |
I agree, but ESP8266 Arduino has been pushed back a bit which causes long time between the releases. The changes in the core should have been released long time ago and this should not have been an issue, but reality is different :) Hopefully a new release will be out soo and problems like this will go in the past. |
Thanks, Hope also for a new release ... ;-) |
if you use the github version of the ESP8266 core, AsyncUDP and many things will already work better ;) |
Yes i understand it , |
Same compilation error, running windows10, arduino ide 1.6.13 , fixed same as Stephan35, replaced the 2.3.0 folder contents in C:\Users*me*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\ with the git download and it compiles ok. Thanks. |
Hello beautifulsmall, What i know, work fine ether with 2.3.0 or 2.3-rc-2 Hope this will help you. |
Hi Stephan, Thanks for the help, had not seen the weMos board option. I
will try it.
I have compiled ok now for " generic esp8266 " after I cut and pasted the
git code into the 2.3.0 folder . The download to an esp8266-01 failed and I
had to copy the tools folder into the hardware folder.
Now Im trying to use the multidevice branch by Xose Perez, new to source
tree ! I can only get dot to discover 4 fauxmo.adddevices().
Its so amazing to be able to say " alexa turn light one on ". and it
worked. Im so excited.
…On 2 December 2016 at 08:35, Stephan35 ***@***.***> wrote:
Hello beautifulsmall,
First you have to check if arduino compil all your sketch from start
(don't know how to translate) compil all from begining ?
otherwise, change card to wemos ESP or anotherESP , compil, and come back
to your esp card and compil again.
What i know, work fine ether with 2.3.0 or 2.3-rc-2
You just have to update this folder : AppData\Local\Arduino15\
packages\esp8266\hardware\esp8266\2.3.0-rc2\tools\sdk
with github core same path .(Arduino-master.zip\Arduino-master\tools\sdk)
Hope this will help you.
Best regards
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWb5O5T9sTZ3KngiYTkfKgjk3r-GgVigks5rD9g-gaJpZM4JRVSb>
.
|
I really can't figure this out. I am using PlatformIO and am having the problem reported in this thread. Someone said above " replaced the 2.3.0 folder contents in C:\Usersme\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\ with the git download and it compiles ok" which is what I tried to do but I still get the same error - as I have Arduino IDE and PlatformIO on my machine I am not sure PlatformIO uses this folder anyway. Does anyone have info on exactly how to fix this problem if using PlatformIO? Thanks! |
Eina61, Do not forget for Arduino IDE change esp card , then compile , change to your esp card and compile again . Because Arduino IDE do not know that you have made change in your core folder, you maybe have to tell to platformIO to compile all of your sketch .... (hope i explain correctly) Best regards. |
Yeah, was hoping that PlatformIO used the same library structure but looks like it doesn't. But I finally got it working using the Arduino IDE using your method. Looks like I might stick with that IDE instead of going to PlatformIO so quickly. Thanks! |
Once ESP8266 Arduino 2.4.0 is released, everything will be OK with platformio or any other builder. There are just too many fixes in git that have not made it to release yet. |
Using the staging version as suggested by @benpeoples and @majklovec does resolve the compiler errors, but one has to move the ino-file from the examples folder to the src folder in platformio. Otherwise there will be linker errors: undefined references to setup and loop. |
exit status 1 Getting the above error can anyone guide me as to what should i do |
|
C:\Users\samir\Downloads\Sonoff-Tasmota-5.9.1\Sonoff-Tasmota-5.9.1\sonoff\xdrv_ir_send.ino:26:29: fatal error: IRremoteESP8266.h: No such file or directory #include <IRremoteESP8266.h> |
It looks like you are missing the IRremoteESP8266 library -- so the probably doesn't seem to be with ESPAsyncUDP. That library appears to be here: https://github.com/markszabo/IRremoteESP8266 |
Arduino: 1.8.5 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DOUT, 115200, 1M (64K SPIFFS), ck, Disabled, None" Build options changed, rebuilding all
C:\Users\samir\Downloads\arduino-1.8.5-windows\arduino-1.8.5\libraries\Robot_Control\src/Fat16.h:27:26: fatal error: avr/pgmspace.h: No such file or directory #include <avr/pgmspace.h>
compilation terminated. exit status 1 This report would have more information with Got that but now seem to get this error |
I believe you are trying to adapt something written for an AVR to ESP8266. This thread is really not the right place for that: perhaps try /r/esp8266 or the official ESP8266 Forums? |
i am trying to write tasmota firmware on Sonoff |
I've just run into this problem too. The current master branch of https://github.com/esp8266/Arduino also fails right now with a different error, something about err_t being defined as both a 8 bit number and as a 32 bit number. Ultimately, to get this to work, I followed the official "Using git version" install instructions but with the specific commit from the pull request linked above, https://github.com/esp8266/Arduino/tree/07f4d4c241df2c552899857f39a4295164f686f2 Now it builds and runs! And works! My application combines: |
yes, I had same problem:ERROR Compiling for Boards NodeMCU 1.0(ESP-12E).It solved after deleting Mcaffee Anti virus . |
I am trying to setup ESP8266 as WIFI Gateway and followed the instructions but getting the following compilation error. I am using Arduino IDE 1.9.0. 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\Documents\Arduino\libraries\MySensors/MySensors.h:420:0,
C:\Users\Javed\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\Javed\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/pgmspace.h:10:0,
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 Any help, please? Thanks. |
I found the fix for this issue after extensive search on internet. ESP8266 ver. 2.4.2 or later have broken function call in C. The only version which worked is 2.4.1. Thanks, |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Could you tell me is I am doing anything wrong. I get this error when compiling the server and client examples. I am using Arduino 1.6.9 and ESP8266 2.3.0
And while I'm here, I had previously wished for ESPAsyncUDP and was thrilled when I found it yesterday.
C:\Users\Rudy\Documents\Arduino\libraries\ESPAsyncUDP-master\src\AsyncUDP.cpp: In member function 'bool AsyncUDP::listenMulticast(ip_addr_t*, uint16_t, uint8_t)':
C:\Users\Rudy\Documents\Arduino\libraries\ESPAsyncUDP-master\src\AsyncUDP.cpp:254:57: error: 'udp_set_multicast_netif_addr' was not declared in this scope
C:\Users\Rudy\Documents\Arduino\libraries\ESPAsyncUDP-master\src\AsyncUDP.cpp:255:36: error: 'udp_set_multicast_ttl' was not declared in this scope
The text was updated successfully, but these errors were encountered: