Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By martinayotte
#44673 Indeed, Hmmm ...

This stack trace looks strange, especially that in my 2.1.0 tree, the line 43 of core_esp8266_main.cpp doesn't correspond to loop_task().

Did you had a previous installation before getting this 2.1.0 installed ?
User avatar
By Henning
#44716 No, it`s my first installation. I installed the Arduino IDE 1.6.5 as step 1. In Step 2 I added the ESP8266 using the URL http://arduino.esp8266.com/stable/packa ... index.json.

Today I removed the ESP8266 package completey (using the board-manager). I checked C:\Users\Bettina\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0 ... everything was deleted and then I reinstalled the package.

Unfortunately no difference. I still get this exception.

Here the code in "my" core_esp8266_main.cpp arround line 43 :

39 struct rst_info resetInfo;
40
41 int atexit(void (*func)()) {
42 return 0;
43 }
44
45 extern "C" void ets_update_cpu_frequency(int freqmhz);
46 void initVariant() __attribute__((weak));
47 void initVariant() {
48 }

Yesterday I received 2 new ESP12E boards ... same problem :-(
User avatar
By Mickbaer
#46136 Hello,
I have had also Problems using the ESP8266WebServer at Arduino IDE 1.65 on an ESP8266-07.
The ESP8266WebSever blocked the Loop for more than 500ms,
for garbackcollections, to free ram and crashes like you have shown.

I have installed than Arduino IDE 1.68 and it work's better,
(at the ESP parts has been done some changes)
the garbackcollection, can be seen, but it did not crashes any more.
Now I have working the WebServer, up to seven day's wiht no Crash and no reconnection working very well :D

Mickbaer from Berlin Germany
You do not have the required permissions to view the files attached to this post.
User avatar
By Ehler
#47402 @Henning: Did you solved your problem? Because I've exactly the same error with a generic ESP-12E board and I don't know what I can do. I tried the examples and getting your mentioned error..

After some seconds(30s-60s) of running, I'm getting:

Code: Select allException (0):
epc1=0x40106d42 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys
sp: 3ffffd80 end: 3fffffb0 offset: 01a0

>>>stack>>>
3fffff20:  4021b157 005e0001 40210c78 3ffecf98 
3fffff30:  3fff1a1c 00000001 4021b196 3ffed6b0 
3fffff40:  4021afa5 3fff1824 3fffff80 3fff153c 
3fffff50:  3ffe0000 3fff1a1c 3ffeea70 4021b958 
3fffff60:  3fff1824 3fff153c 3ffe9e34 4021a6f7 
3fffff70:  3fff153c 00000014 4021aca2 3fff1824 
3fffff80:  3fff153c 3fffdc80 3fff15b4 3fffdcb0 
3fffff90:  4022665b 3fff1824 00000000 40206767 
3fffffa0:  40000f49 3fffdab0 3fffdab0 40000f49 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)


I think it must be a software bug because I tried differend board and all had the same error. I've tried different Arduino (1.6.5/1.6.8/1.69) and ESP-board versions (1.6/2.1/2.2) and I also checked the power connection that it provides enough current.. The board setup is the same as the suggested for improved stability:
Image

Any ideas?