-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
ESP-12E Module: Exception (2) after boot #1675
Comments
oh nooo.... so right now even Generic Module does not work and instead lead to Exception (2)...... this gives me the hope that even NodeMCU1.0 could work if the exception can be fixed! |
at first test which flash is on your board. when WiFi and EEPROM not working your selection is most likely to big and the code trys to access not existing memory on the Flash. |
Output is: Flash ide size: 524288 Changeing config to: what do you mean with "selection"? |
selection means the flash settings in the IDE, what i mean where if you have real 512KB and select 1MB for example the data will be located outside of the memory range of the Hardware. so you switch from 2.0.0 to 2.1.0-rc2 and now you have the Exception? i understand german too ;) |
I'm having the same problem and it seems to be related to umm_malloc. The sketch runs fine up until I call I'm running Debian Jessie with a generic ESP12E. I'm flashing with Arduino 1.6.8 using board NodeMCU 1.0 , 80MHZ, 4M (1M SPIFFS). Sketches that don't connect to Wifi work fine. StackPanic /home/tink/arduino-nightly/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:851 check_poison_block
ctx: cont
sp: 3fff0260 end: 3fff0650 offset: 01b0
>>>stack>>>
3fff0410: 00000002 3fff0352 feefeffe feefeffe
3fff0420: feefeffe 00000b48 3ffef548 40100445
3fff0430: feefeffe feefeffe feefeffe 4010075b
3fff0440: feefeffe 00001000 00000484 40100919
3fff0450: 00000484 00001000 000003fe 401078f4
3fff0460: 40004b31 3fff0490 0000001c 40227d05
3fff0470: 40106316 40227ded 3fff124c 000003ff
3fff0480: 000003fd 3fff0597 3fff124c 000003fd
3fff0490: ffffff01 55aa55aa 00000009 0000001c
3fff04a0: 0000001c 000000a3 00000078 000003ff
3fff04b0: 402281dc 3fff124c 3fff124c 000000ff
3fff04c0: 00000001 3fff05b7 40228337 00000008
3fff04d0: 3fff124c 000000ff 3fff0597 00000000
3fff04e0: 3fff130c 3fff05f8 00000001 402283c4
3fff04f0: 3fff0597 3fff124c 00000000 00000004
3fff0500: 3fff05b7 3fff7584 3fff124c 00000000
3fff0510: 40228400 3ffe840f 3ffe8400 feefeffe
3fff0520: 40202b92 3ffe8400 3ffe840f 40202ad2
3fff0530: 00000000 00000011 3fff0360 3fff0360
3fff0540: 00000010 00000000 3fff0360 402085fa
3fff0550: 3ffef300 00000135 00000135 4010020c
3fff0560: 3ffef0c0 0000000e 3fff0e64 40100aec
3fff0570: 40228526 3ffef328 3ffef0c0 3fffdad0
3fff0580: 4022934b 3fff0360 40206304 3ffef3f0
3fff0590: ffffff00 41ffffff 61485854 72656b63
3fff05a0: 63617073 feef0065 feefeffe 00002580
3fff05b0: 0000001c 68000000 6f6b6361 0021216e
3fff05c0: feefeffe 00000001 3ffe8681 4020706c
3fff05d0: 00000000 0000000e 3ffe83fe 3ffef628
3fff05e0: 3ffef56c 0000000f 3ffef56c 402053d9
3fff05f0: 3ffe8680 00fe83ec 3ffef56c 402053d9
3fff0600: 3ffef310 00000000 00000001 3ffef56c
3fff0610: 40202907 000003e8 3ffef56c 3ffef628
3fff0620: 3ffef56c 3ffef310 00000000 40202790
3fff0630: 3fffdad0 00000000 3ffef621 40205858
3fff0640: feefeffe feefeffe 3ffef630 40100b98
<<<stack<<< Flash InfoFlash real id: 001640E0
Flash real size: 4194304
Flash ide size: 4194304
Flash ide speed: 40000000
Flash ide mode: QIO
Flash Chip configuration ok. |
unfortunatelly i'm not 100% sure which version i used before...it must be released before 12.01.16 |
i exchange the new (2.1.0-rc2) hardwarefolder with my saved (old and unknown version) and compiled my code. result: any ideas what went wrong? |
and one other question: could wrong usage of Strings cause Exception (2)? i read about fragmented heap (must read more about it to understand the problem). As I have started my programing experience with java i'm not taht familiar with memory allocation...definitely have to learn more about that and avoid Strings I think... |
copied over is the problem, remove all ESP stuff from the IDE in hardware and in the user folder (APPDATA) for releases the version is noted in platform.txt note: |
this is what i think updating is:
doing this leads to the initial posted exception (2) doing the same reversed (changing back to old) gives me the error log three posts above.
i will try tonight/the next days to complety exchange occurances of String with char-arrays. hope this helps |
@Links2004 , for the record I verified that I'm using version 2.1.0 and I am still having this problem. |
some updates: i started to rebuild my code step by step since i figuered out a blank arduino sketch won't crash my board. So i started copying smal chunks from my previously working code to the blank sketch. Everything was fine, i was happy.... until i reached adding webserver. the board crashed after it had to send contents to a browser that requested some page..... but now, something new! i got Exception (3). nvertheless its frustrating!! THANK YOU igrr! (will let this issue open since i haven't tested enough to say it can be closed) |
so i've been testing for some hours now and reactivated my enitre sketch. no errors until now! actually my module is running for more or less 4 hours without restart/reboot/sketchupload and no unwanted resets happend. |
@Links2004, The problem is still unresolved for me. Do you think that our problems are unrelated? If so, that's fine but I would love a response of any sort. ( not that I'm entitled to one. Also, thanks for all the work you've put in to help this community ) |
@uncletammy you still have Panic from umm_malloc (heap corrupted)? |
@Links2004, I would love to but I'm not sure how to do that. Give me a few minutes to figure it out and I'll get back to you. Thanks for the response! |
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.md |
Also, you can see my sketch at https://gist.github.com/uncletammy/198fec767a8e4803e6af I've tried the same sketch on two different boards. One is a NodeMCU board and one is a plain generic board that I've wired up. It works on the NodeMCU board but not on the generic board alone. I'm beginning to think it's hardware related. You can see my wiring at the images below. https://drive.google.com/file/d/0BwFbwCQ9LBckMTk4MWVVSUtGYTA/view?usp=sharing |
hey uncletammy, i'm sorry! i was so happy that my problem is solved that i forgot yours!! just one question in this issue, because then it would be related to mine, other suggestions in your issue: did you merge this ( 87a7f8e ) commit allready? |
@Jather90, that's okay. Thanks for coming back. Unfortunately I have already merged that commit and I'm still having issues :( |
I can reproduce as well, was following other thread, just found this one will read it all and do a cleanup and see. |
I was getting the same error; implemented the solution proposed by @Jather90 (change the Flash size to 4M (1M SPIFFS) or 4M (3M SPIFFS)). I got "Flash Chip configuration ok"" in the flash size sketch and finally got my ESP12E to connect to wifi. I am using windows 10 and Arduino IDE 1.6.8 Hourly build 2016/03/08 06:33 |
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
The text was updated successfully, but these errors were encountered: