Go Down

Topic: ESP8266-12E Board (Read 386 times) previous topic - next topic

dgaugler

I have been creating things with my Arduino for several years now and have "stepped up" to using the ESP8266-12E board now.  I have installed the latest Arduino IDE (1.8.3) and installed the board.  The first thing that I did was simply compile a blank sketch; absolutely nothing on it.  Much to my chagrin, it gives me the following message:

Arduino: 1.8.3 (Windows XP), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

In file included from c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\string:41:0,

                 from c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\stdexcept:39,

                 from c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:38,

                 from c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39,

                 from c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,

                 from C:\Documents and Settings\USER1\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:27,

                 from C:\Documents and Settings\USER1\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,

                 from C:\Documents and Settings\USER1\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,

                 from C:\Documents and Settings\USER1\My Documents\Arduino\ESP8266-12E_Weather\ESP8266-12E_Weather.ino:5:

c:\documents and settings\user1\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\allocator.h:46:75: fatal error: bits/c++allocator.h: No such file or directory

 #include <bits/c++allocator.h> // Define the base class to std::allocator.

                                                                           ^

compilation terminated.

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 someone tell me what I have done wrong?  Thanks!!

randmor

The ESP8266 requires installation of what's know as "the ESP8266 Core for Arduino". I suspect either you did not install this software, or that you did not change the board type to one of the ones listed under the ESP8266 part of the board list. There should be a board 'driver' listed that corresponds to the board you are using. The best support for the ESP8266 Core for Arduino is on Github. Try this URL:

https://github.com/esp8266/Arduino


The fact that most of the error messages mention "xtensa", which is a component of the ESP8266 tool chain suggest to me that the ESP8266 Core is not installed. If it was installed, perhaps it got corrupted, so my next suggestion would be to try and reinstall the ESP8266 Core for Arduino.


BruceK

#2
Sep 02, 2017, 10:25 pm Last Edit: Sep 03, 2017, 12:17 am by BruceK
I'm having the same problem on my Win XP system. The Arduino IDE complains thusly:


c:\documents and settings\owner\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\allocator.h:46:75: fatal error: bits/c++allocator.h: No such file or directory

 #include <bits/c++allocator.h> // Define the base class to std::allocator.


I have installed the ESP8266 Arduino core through the Preferences pane in the Additional Boards Manager area, and made sure to select the Adafruit HUZZAH ESP8266 board, which is the one I'm using.

I see no c++allocator.h file in the bits folder.

You suggest reinstalling the ESP8266 Core. How do I go about doing that?

Thanks!


Please hold! I've found out how to uninstall the ESP8266 module code. I will do that, reinstall it and see what happens.

ballscrewbob

I had some issues on an XP TEST system with 1.8.2, 1.8.3.

My fix for such an old OS was to revert to 1.6.5 R5.
This may be a good option if you cannot upgrade to a newer OS but does mean you will maybe loose a few features such as the new CACHE option.

And yes it works on my ESP's just fine.

The Arduino CREATE online IDE will also not operate under XP either even though the install will complete properly.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up