Skip to content

ESP-12E Module: Exception (2) after boot #1675

Closed
@Jather90

Description

@Jather90

Basic Infos

Exception (2) after boot

Hardware

Hardware: ESP-12E
Core Version: 2.1.0-rc2
Windows 10 64-bit

Description

Background: programing ESP-12E worked quite well but randomly gave Exception (28). That's why I updated (read that clue in some other issue that sounded similar) to 2.1.0-rc2 (don't know which version I used before...)
The problem now got even worse! After boot there is now Exception (2) (stack below) and I have no clue what goes wrong.... I'm not sure why, but if I DON'T use "NodeMCU 1.0(ESP-12E Module)" Option to compile and choose "Generic ESP8266Module" with 512K(64 SPIFFS) (and only with this flash size!) everything works fine o.o .... right now I'm not in the mood to check with this configuration for occurance of prior Exception (28) .. I just want to belive they are gone with updating to 2.1.0-rc2! But thats not my problem right now.
Some additional note to flashsize: i tested quite a lot so don't blame me for not knowing every setting in detail, but i got the impression some settings worked as long no WIFI-connection was established. Maybe I'm wrong, but reading stored SSID from EEPROM did not work after changing flashsize settings (I'm not into EEPROM now, i thought that is caused by changing the flash size). After giving SSID via Serial, ESP crashes....

Settings in IDE

Module: NodeMCU 1.0 (ESP-12E Module)
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: can't change in this Module
Flash Frequency: can't change in this Module
Upload Using: SERIAL
Reset Method: can't change in this Module

Stack

[hoch() is my Code, looks like this:
368: void hoch(){
369:  Serial.println("called hoch");
370:  wlanHoch=true;
371:  sendDone();
372:}
===========================
void sendDone(){
  server.send ( 200, "text/html",TEXT_DONE); 
  println("send finished");
}
===========================
TEXT_DONE is a simple html in progmem with Text response "DONE!"
const char TEXT_DONE[] PROGMEM = R"=====( .... )=====";
]
Exception (2):
epc1=0x3ffe936c epc2=0x00000000 epc3=0x00000000 excvaddr=0x3ffe936c depc=0x00000000

ctx: cont 
sp: 3fff1270 end: 3fff1630 offset: 01a0

Decoding 35 results
0x4010193e: ppEnqueueRxq at ??:?
0x4010170b: ppProcessTxQ at ??:?
0x40101daa: pp_post at ??:?
0x4022b46c: wifi_softap_set_default_ssid at ??:?
0x4010427b: lmacRecycleMPDU at ??:?
0x401046de: lmacRecycleMPDU at ??:?
0x40107020: printf at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266/libc_replacements.c:206
0x40205553: ESP8266WiFiAPClass::softAP(char const*, char const*, int, int) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WiFi\src/ESP8266WiFiAP.cpp:324
0x40205454: ESP8266WiFiAPClass::softAP(char const*, char const*, int, int) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WiFi\src/ESP8266WiFiAP.cpp:324
0x4010031d: check_poison at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:817
0x40100426: check_poison_block at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:851
0x401006d8: malloc at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1658
0x40100537: check_poison_all_blocks at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:880
0x401006c2: malloc at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266\umm_malloc/umm_malloc.c:1642
0x40208aa8: operator new(unsigned int) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266/abi.cpp:84
0x40206ed5: ESP8266WebServer::on(char const*, HTTPMethod, std::function<void ()>, std::function<void ()>) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WebServer\src\detail/RequestHandlersImpl.h:53
0x40203604: hoch() at C:\Users\Sven\AppData\Local\Temp\build6345216281220482925.tmp/pages.h:368
0x4020903c: std::_Function_base::_Base_manager<void (*)()>::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:1934
0x40209028: std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2069
0x40206f4c: ~function at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WebServer\src\detail/RequestHandlersImpl.h:53
 (inlined by) ESP8266WebServer::on(char const*, HTTPMethod, std::function<void ()>) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WebServer\src/ESP8266WebServer.cpp:132
0x4020a830: String::concat(char) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266/WString.cpp:290
0x40203604: hoch() at C:\Users\Sven\AppData\Local\Temp\build6345216281220482925.tmp/pages.h:368
0x4020903c: std::_Function_base::_Base_manager<void (*)()>::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:1934
0x40209028: std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2069
0x40203844: readEEPROMAndConnectToWlan() at C:\Program Files (x86)\Arduino/espRollo.ino:246
0x40206f85: ~function at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WebServer\src\detail/RequestHandlersImpl.h:53
 (inlined by) ESP8266WebServer::on(char const*, std::function<void ()>) at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\libraries\ESP8266WebServer\src/ESP8266WebServer.cpp:128
0x40203604: hoch() at C:\Users\Sven\AppData\Local\Temp\build6345216281220482925.tmp/pages.h:368
0x4020903c: std::_Function_base::_Base_manager<void (*)()>::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:1934
0x40209028: std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2069
0x40204a3f: ~function at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2174
 (inlined by) setup at C:\Program Files (x86)\Arduino/espRollo.ino:149
0x40203604: hoch() at C:\Users\Sven\AppData\Local\Temp\build6345216281220482925.tmp/pages.h:368
0x4020903c: std::_Function_base::_Base_manager<void (*)()>::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:1934
0x40209028: std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) at c:\program files (x86)\arduino\hardware\esp8255com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional:2069
0x40208bc8: loop_wrapper at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266/core_esp8266_main.cpp:43
0x40100958: cont_norm at C:\Program Files (x86)\Arduino\hardware\esp8255com\esp8266\cores\esp8266/cont.S:109

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions