Git Product home page Git Product logo

espexceptiondecoder's Introduction

Arduino ESP8266/ESP32 Exception Stack Trace Decoder Build Status

Arduino plugin which lets you get a more meaningful explanation of the stack traces you get on ESP8266/ESP32.

Installation

  • Make sure you use one of the supported versions of Arduino IDE and have ESP8266/ESP32 core installed.
  • Download the tool archive from releases page.
  • In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
  • Unpack the tool into tools directory (the path will look like <home_dir>/Arduino/tools/EspExceptionDecoder/tool/EspExceptionDecoder.jar).
  • On newer versions of linux (Ubuntu 20.04), you may need to install the libncurses5 and libpython2.7 packages: sudo apt install libncurses5 libpython2.7
  • Restart Arduino IDE.

Usage

  • Open a sketch and build it.
  • Upload the sketch and monitor the Serial port for Exceptions
  • When you get an Exception, open Tools > ESP Exception Decoder menu item. This will open a new window.
  • Paste the stack trace into the window's top pane and the result will show in the bottom.
  • Every time you enter new address or stack trace, the results will refresh

EspExceptionDecoder.png

Exception decoded on ESP32

esp32-exception.png

Gedit Highlighting

You can use the StackTrace utility to have gedit highlight the above stack trace for easy viewing. More details can be found here: https://github.com/electronicsguy/ESP8266/tree/master/Misc/StackTrace

Credits and license

  • Copyright (c) 2015 Hristo Gochkov (ficeto at ficeto dot com)
  • Licensed under GPL v2 (text)

Command line version

If you are searching for a command line version, look at [EspStackTraceDecoder] (https://github.com/littleyoda/EspStackTraceDecoder). EspStackTraceDecoder is based on the EspExceptionDecoder, but was completely rewritten for the command line usage.

espexceptiondecoder's People

Contributors

earlephilhower avatar electronicsguy avatar facchinm avatar lbernstone avatar littleyoda avatar me-no-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

espexceptiondecoder's Issues

Exception in thread "AWT-EventQueue-0"

Hi,

I've copied the Exception Decoder to the path indicated on the instructions and the tool appears on the Arduino IDE.

Nonetheless, when I try to open it, I get the exception below.

I'm on version 1.6.8 of the Arduino IDE.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getBuildPath()Ljava/io/File;
at com.ficeto.esp.EspExceptionDecoder.getBuildFolderPath(EspExceptionDecoder.java:160)
at com.ficeto.esp.EspExceptionDecoder.createAndUpload(EspExceptionDecoder.java:262)
at com.ficeto.esp.EspExceptionDecoder.run(EspExceptionDecoder.java:344)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Do you have any suggestion on how to solve the issue?

Thanks in advance,
Nuno Santos

Error file not found..

Whenever I want to use the tools I got the following message (using Decoder V1.0.1, Arduino 1.6.5 under Win8):
ERROR: abcd.ino.elf not found!
The reason for that is that the file is named abcd.cpp.elf! When I rename the file then the tool is running..
Please change:
elf = new File(getBuildFolderPath(editor.getSketch()), editor.getSketch().getName() + ".ino.elf");
to:
elf = new File(getBuildFolderPath(editor.getSketch()), editor.getSketch().getName() + ".cpp.elf");
Is that correct?

Decode Failed

The following decode fails.

Not sure whats wrong.

ctx: cont
sp: 3ffef290 end: 3ffef530 offset: 01b0

stack>>>
3ffef440: 00000070 3ffee404 3ffee398 402020dd
3ffef450: 00000024 3ffee404 3ffee398 40202091
3ffef460: 3ffef4f0 00001d14 3ffee398 402026f0
3ffef470: 0000003d 00001d14 3ffee398 40202750
3ffef480: 3ffef4f0 3ffee398 3ffee398 4020296c
3ffef490: 0000000e 00000001 00000001 40201f28
3ffef4a0: 3fffdad0 0000000e 3ffee4e0 00001cec
3ffef4b0: 00000001 3ffee398 00000002 4020200d
3ffef4c0: 3ffef4f0 0000000e 00000002 00000028
3ffef4d0: 40201136 000003e8 3ffee4e0 3ffee504
3ffef4e0: 3fffdad0 3ffee398 3ffee4e0 40201e10
3ffef4f0: 6c6c6548 6f57206f 20646c72 00003223
3ffef500: 00000000 00000000 00000001 40203319
3ffef510: 3fffdad0 00000000 3ffee4fc 40203344
3ffef520: feefeffe feefeffe 3ffee510 40100718
<<<stack<<<

WiFi Status Not Updated on Disconnect

Hardware:
Board: Adafruit HUZZAH32
Core Installation/update date: IDF & Arduino up to date
IDE name: PlatformIO
Flash Frequency: 40Mhz
Upload Speed: 115200

Description
I have an application that uses 2 FreeRTOS tasks. One of these tasks will eventually act as a server that clients connect to.

I attempted to implement auto reconnect to WiFi. To test this I uploaded my code, ensured the ESP32 connected to WiFi, unplugged my router from the wall, waited a few minutes, and plugged it back in.

It appears that while my router is disconnected the return value from WiFi.status() was WL_CONNECTED (3) which indicated the ESP32 thinks it's still connected to WiFi. I have waited for as long as 10 minutes and the WiFi status did not update.

I know my WiFi didn't work because all of my other devices couldn't connect.

Code:

#include <Arduino.h>
#include <WiFi.h>

#define SSID "**********"
#define PASSWORD "**********"

TaskHandle_t otherTask;
TaskHandle_t wifiTask;

unsigned long int tempTime = 0;

void otherThread(void*ptr)
{
  while(1)
  {
    //do something else here
    delay(100);
  }

  vTaskDelete( NULL );

}

void wifiThread(void *ptr)
{
  WiFi.begin(SSID, PASSWORD);

  Serial.print("WiFi status: "); Serial.println(WiFi.status());

  while (WiFi.status() != WL_CONNECTED) 
  {
    delay(300);
    Serial.println("Connecting to WiFi....");
  }

  Serial.print("IP: ");Serial.println(WiFi.localIP());

  while(1)
  {
    if((WiFi.status() != WL_CONNECTED))
    {
      Serial.println("WiFi Disconnected");
      WiFi.disconnect();

      delay(100);

      WiFi.begin(SSID,PASSWORD);

      while(WiFi.status() != WL_CONNECTED)
      {
        delay(300);
        Serial.println("Attempting to reconnect to WiFi");
      }
    }

    else
    {
      unsigned long int currentTime = millis();

      if((currentTime - tempTime) > 700) //non blocking print every 700ms
      {
        Serial.print("WiFi status: "); Serial.println(WiFi.status());
        tempTime = currentTime;
      }
    }
  }

  vTaskDelete( NULL );
}

void setup() 
{
  Serial.begin(115200);
  
  xTaskCreatePinnedToCore(
    otherThread,           
    "otherThread",       
    20000,                    
    NULL,                     
    3,                       
    &otherTask,           
    0);
  
    xTaskCreatePinnedToCore(
    wifiThread,          
    "wifiThread",        
    25000,                    
    NULL,                     
    3,                        
    &wifiTask,             
    1);
}

void loop()
{

}

Decode failed

Greetings!

Sadly i get the error "Decode failed". Arduino IDE is 1.85 and i'm using the latest Decoder release.

stack>>>
3ffffe70: 3fff0a30 00000000 00000000 4021659b
3ffffe80: 4010500c 025f5af8 3fff19a4 40212a9f
3ffffe90: 3ffef470 00000244 00000244 fffffffb
3ffffea0: 3fff0914 00000000 3fff0910 4020f01d
3ffffeb0: 40000f68 3ffe933c 3fff0910 40212590
3ffffec0: 00000000 00000007 3fff0d54 4021201d
3ffffed0: 3ffe933c 3ffe933c 3fff0910 402125be
3ffffee0: 00000000 3fff0910 3fff0d54 40214ae0
3ffffef0: 0100a8c0 3fffdcb0 3ffee918 00000030
3fffff00: 00000000 3fff0910 3fff0d54 40214b33
3fffff10: 40210450 3fff056c 3fff0a34 40100690
3fffff20: 3ffee8f0 3ffe9444 00000030 3fff0568
3fffff30: 40210450 3fff056c 3ffe92d0 4021045e
3fffff40: 40104d7e 0243e6ff 00000001 4021051c
3fffff50: 3ffe92d0 3ffe9444 0243e6ff 00000000
3fffff60: 4022eb14 3ffee8c8 3ffee8f0 60000600
3fffff70: 08d6a0e3 3ffee8f0 3ffee8c8 4022eb21
3fffff80: 4022eb66 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffee900 40000f65 3fffdab0 00000000
3fffffa0: 40000f49 3ffe96f0 3fffdab0 40000f49
<<<stack<<<

Update: Using the previous release 1.0.6 fixed the problem. Decoding was successful.

Decode Failed

Im using Arduino IDE 1.8.5 and the newest version of the EspExceptionDecoder. After pasting my stack trace into the Exception Decoder it just says "Decode Failed".

Exception (29):
epc1=0x4021325a epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3fff17d0 end: 3fff1cc0 offset: 01a0

stack>>>
3fff1970: 00000000 00000314 3fff601c 401004f4
3fff1980: 00000000 3fff4364 3fff601c 40213a4f
3fff1990: 00000001 3fff4364 3fff601c 4021442c
3fff19a0: 00000000 3fff4364 3fff8f5c 402160e8
3fff19b0: 3fff8f04 3fff8f7c 3fff8f04 4020e2ca
3fff19c0: 3fff8f5c 3fff42a4 3fff8f5c 3fff8f7c
3fff19d0: 3fff8f04 3fff42a4 3fff8f5c 40205e98
3fff19e0: 3fff8f5c 00000000 3fff8ecc 4020546a
3fff19f0: 3fff8ecc 000003b4 000003b4 00000000
3fff1a00: 000001bb 3fff8f5c 3fff8f7c 00000000
3fff1a10: 000001bb 3fff8f5c 3fff8f7c 402061cd
3fff1a20: 3ffe9998 86167328 3ffe9998 86167328
3fff1a30: 3ffefe58 00000000 3fff1ac0 40206e48
3fff1a40: 00000000 0000003b 3fff83e0 4020a92b
3fff1a50: 3fff0c4c 00000000 3fff1ac0 40207618
3fff1a60: 00000001 3fff1b30 3fff83e0 4020aa64
3fff1a70: 3fff346c 0000003b 3fff1ac0 4020aa8c
3fff1a80: 3ffe9540 00000d92 00000d92 4010020c
3fff1a90: 3ffefe58 45cc54f5 3fff1b40 3ffefe64
3fff1aa0: 3ffefe58 45cc54f5 3fff0988 402076c6
3fff1ab0: 3ffefe58 45cc54f5 3fff0988 40203f18
3fff1ac0: 3fff83dc 3fff8f5c 3fff8f7c 0000001f
3fff1ad0: 00000019 3f0001bb 00001388 3fff8fa4
3fff1ae0: 0000003f 00000032 3fff4314 0000000f
3fff1af0: 00000005 3fff924c 0000000f 00000000
3fff1b00: 3fff4264 0000001f 00000011 3fff9264
3fff1b10: 0000000f 00000000 00000000 00000000
3fff1b20: 00000000 ffffffff 3fff1b00 00000000
3fff1b30: 00000000 00000000 00000000 4020a884
3fff1b40: 00000000 00000000 00000000 3fff8e64
3fff1b50: 0000005f 00000054 3fff91e4 0000005f
3fff1b60: 00000053 3fff42bc 0000004f 0000004d
3fff1b70: 3fff96a0 3ffefe34 00000000 3ffe856c
3fff1b80: 3fff96a0 3ffefe34 45cc54f5 40204264
3fff1b90: 3fff41d4 3fff4144 3fff3014 0000001f
3fff1ba0: 00000019 000001bb 3f001388 3fff339c
3fff1bb0: 0000001f 0000001e 3fff3d9c 0000000f
3fff1bc0: 00000005 3fff3db4 0000000f 00000000
3fff1bd0: 3fff40dc 0000001f 00000011 3fff4104
3fff1be0: 0000000f 00000000 00000000 00000000
3fff1bf0: 000000c8 0000000f 00000300 00000001
3fff1c00: 3ffe91e0 00000000 3fff9694 00001b34
3fff1c10: 00000000 00000000 00000000 3fff4094
3fff1c20: 0000003f 0000003f 0000000f 40202b88
3fff1c30: 3fff0c4c 00000165 00000165 3fff0c98
3fff1c40: 3fffdad0 00000000 3ffe854c 402042f4
3fff1c50: 4024120b 00000000 00001388 4020a884
3fff1c60: 3fff25dc 40204dbc 3ffe8550 40203344
3fff1c70: 3fffdad0 00000000 3fff0c91 402043e4
3fff1c80: 00000000 00000000 00000000 00000000
3fff1c90: 00000000 00000000 00000000 00000000
3fff1ca0: feefeffe 00000000 3fff0c91 4020b4f8
3fff1cb0: feefeffe feefeffe 3fff0ca0 4010070c
<<<stack<<<

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

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Select ELF dialog on start

When trying to open the tool I get a file open dialog asking me to select an elf-file.
What file am I supposed to select?

Latest release 1.0.6 and IDE 1.6.13

Decode Failed

Installed everything as per the instructions
Compiled and uploaded the sketch.
Sketch did a stack dump

`>>>stack>>>
3fffeea0: 00000000 000007c6 00000000 3fffee34
3fffeeb0: 00000000 3fffdad0 3ffef630 00000030
3fffeec0: 3fffeee0 3fffeee0 00000004 402363c2
3fffeed0: 00000000 00000008 00000018 00000000
3fffeee0: 3ffe9504 3ffe9520 000007c6 00000001
3fffeef0: 00000018 0000000c 00000000 3ffefa3c
3fffef00: 3fffdc80 3fff1724 3fff2724 3fff1794
3fffef10: 00000000 3ffedcf8 00000000 00000000
3fffef20: 402361e0 3ffedcf8 3ffeec60 4902f545
3fffef30: 40238e29 3ffedcf8 3ffeec60 4902f545
3fffef40: 40238e6e 3fffdab0 00000000 3fffdcb0
3fffef50: 3ffeec70 3fffdad0 3ffef630 40210eef
3fffef60: 40000f49 3fffdab0 3fffdab0 40000f49
3fffef70: 40000e19 40001878 00000002 00000000
3fffef80: 3fffff10 ffffffff ffffffff 40104424
3fffef90: 4010442a 00000002 00000000 0e31c8f1
3fffefa0: 4010000d 8ae1a40f e577d16c 8249d4fc
3fffefb0: 40100774 3fffef4c 40100721 3fffff18
3fffefc0: 3fffffd0 00000000 00000000 feefeffe
3fffefd0: feefeffe feefeffe feefeffe feefeffe
3fffefe0: feefeffe feefeffe feefeffe feefeffe
3fffeff0: feefeffe feefeffe feefeffe feefeffe
3ffff000: feefeffe feefeffe feefeffe feefeffe
3ffff010: feefeffe feefeffe feefeffe feefeffe
3ffff020: feefeffe feefeffe feefeffe feefeffe
3ffff030: feefeffe feefeffe feefeffe feefeffe
3ffff040: feefeffe feefeffe feefeffe feefeffe
3ffff050: feefeffe feefeffe feefeffe feefeffe
3ffff060: feefeffe feefeffe feefeffe feefeffe
3ffff070: feefeffe feefeffe feefeffe feefeffe
3ffff080: feefeffe feefeffe feefeffe feefeffe
3ffff090: feefeffe feefeffe feefeffe feefeffe
3ffff0a0: feefeffe feefeffe feefeffe feefeffe
3ffff0b0: feefeffe feefeffe feefeffe feefeffe
3ffff0c0: feefeffe feefeffe feefeffe feefeffe
3ffff0d0: feefeffe feefeffe feefeffe feefeffe
3ffff0e0: feefeffe feefeffe feefeffe feefeffe
3ffff0f0: feefeffe feefeffe feefeffe feefeffe
3ffff100: feefeffe feefeffe feefeffe feefeffe
3ffff110: feefeffe feefeffe feefeffe feefeffe
3ffff120: feefeffe feefeffe feefeffe feefeffe
3ffff130: feefeffe feefeffe feefeffe feefeffe
3ffff140: feefeffe feefeffe feefeffe feefeffe
3ffff150: feefeffe feefeffe feefeffe feefeffe
3ffff160: feefeffe feefeffe feefeffe feefeffe
3ffff170: feefeffe feefeffe feefeffe feefeffe
3ffff180: feefeffe feefeffe feefeffe feefeffe
3ffff190: feefeffe feefeffe feefeffe feefeffe
3ffff1a0: feefeffe feefeffe feefeffe feefeffe
3ffff1b0: feefeffe feefeffe feefeffe feefeffe
3ffff1c0: feefeffe feefeffe feefeffe feefeffe
3ffff1d0: feefeffe feefeffe feefeffe feefeffe
3ffff1e0: feefeffe feefeffe feefeffe feefeffe
3ffff1f0: feefeffe feefeffe feefeffe feefeffe
3ffff200: feefeffe feefeffe feefeffe feefeffe
3ffff210: feefeffe feefeffe feefeffe feefeffe
3ffff220: feefeffe feefeffe feefeffe feefeffe
3ffff230: feefeffe feefeffe feefeffe feefeffe
3ffff240: feefeffe feefeffe feefeffe feefeffe
3ffff250: feefeffe feefeffe feefeffe feefeffe
3ffff260: feefeffe feefeffe feefeffe feefeffe
3ffff270: feefeffe feefeffe feefeffe feefeffe
3ffff280: feefeffe feefeffe feefeffe feefeffe
3ffff290: feefeffe feefeffe feefeffe feefeffe
3ffff2a0: feefeffe feefeffe feefeffe feefeffe
3ffff2b0: feefeffe feefeffe feefeffe feefeffe
3ffff2c0: feefeffe feefeffe feefeffe feefeffe
3ffff2d0: feefeffe feefeffe feefeffe feefeffe
3ffff2e0: feefeffe feefeffe feefeffe feefeffe
3ffff2f0: feefeffe feefeffe feefeffe feefeffe
3ffff300: feefeffe feefeffe feefeffe feefeffe
3ffff310: feefeffe feefeffe feefeffe feefeffe
3ffff320: feefeffe feefeffe feefeffe feefeffe
3ffff330: feefeffe feefeffe feefeffe feefeffe
3ffff340: feefeffe feefeffe feefeffe feefeffe
3ffff350: feefeffe feefeffe feefeffe feefeffe
3ffff360: feefeffe feefeffe feefeffe feefeffe
3ffff370: feefeffe feefeffe feefeffe feefeffe
3ffff380: feefeffe feefeffe feefeffe feefeffe
3ffff390: feefeffe feefeffe feefeffe feefeffe
3ffff3a0: feefeffe feefeffe feefeffe feefeffe
3ffff3b0: feefeffe feefeffe feefeffe feefeffe
3ffff3c0: feefeffe feefeffe feefeffe feefeffe
3ffff3d0: feefeffe feefeffe feefeffe feefeffe
3ffff3e0: feefeffe feefeffe feefeffe feefeffe
3ffff3f0: feefeffe feefeffe feefeffe feefeffe
3ffff400: feefeffe feefeffe feefeffe feefeffe
3ffff410: feefeffe feefeffe feefeffe feefeffe
3ffff420: feefeffe feefeffe feefeffe feefeffe
3ffff430: feefeffe feefeffe feefeffe feefeffe
3ffff440: feefeffe feefeffe feefeffe feefeffe
3ffff450: feefeffe feefeffe feefeffe feefeffe
3ffff460: feefeffe feefeffe feefeffe feefeffe
3ffff470: feefeffe feefeffe feefeffe feefeffe
3ffff480: feefeffe feefeffe feefeffe feefeffe
3ffff490: feefeffe feefeffe feefeffe feefeffe
3ffff4a0: feefeffe feefeffe feefeffe feefeffe
3ffff4b0: feefeffe feefeffe feefeffe feefeffe
3ffff4c0: feefeffe feefeffe feefeffe feefeffe
3ffff4d0: feefeffe feefeffe feefeffe feefeffe
3ffff4e0: feefeffe feefeffe feefeffe feefeffe
3ffff4f0: feefeffe feefeffe feefeffe feefeffe
3ffff500: feefeffe feefeffe feefeffe feefeffe
3ffff510: feefeffe feefeffe feefeffe feefeffe
3ffff520: feefeffe feefeffe feefeffe feefeffe
3ffff530: feefeffe feefeffe feefeffe feefeffe
3ffff540: feefeffe feefeffe feefeffe feefeffe
3ffff550: feefeffe feefeffe feefeffe feefeffe
3ffff560: feefeffe feefeffe feefeffe feefeffe
3ffff570: feefeffe feefeffe feefeffe feefeffe
3ffff580: feefeffe feefeffe feefeffe feefeffe
3ffff590: feefeffe feefeffe feefeffe feefeffe
3ffff5a0: feefeffe feefeffe feefeffe feefeffe
3ffff5b0: feefeffe feefeffe feefeffe feefeffe
3ffff5c0: feefeffe feefeffe feefeffe feefeffe
3ffff5d0: feefeffe feefeffe feefeffe feefeffe
3ffff5e0: feefeffe feefeffe feefeffe feefeffe
3ffff5f0: feefeffe feefeffe feefeffe feefeffe
3ffff600: feefeffe feefeffe feefeffe feefeffe
3ffff610: feefeffe feefeffe feefeffe feefeffe
3ffff620: feefeffe feefeffe feefeffe feefeffe
3ffff630: feefeffe feefeffe feefeffe feefeffe
3ffff640: feefeffe feefeffe feefeffe feefeffe
3ffff650: feefeffe feefeffe feefeffe feefeffe
3ffff660: feefeffe feefeffe feefeffe feefeffe
3ffff670: feefeffe feefeffe feefeffe 00000022
3ffff680: 3fffc200 40106b64 00000020 40106bac
3ffff690: 3fffc200 40106b64 3fffc230 4000050c
3ffff6a0: 40236600 00000030 00000000 ffffffff
3ffff6b0: 40232b53 00000000 0000007f 00000000
3ffff6c0: 00000000 3f800000 007fffff 1383f34f
3ffff6d0: 3ffed8b0 00ffffff 00000099 00000000
3ffff6e0: ffffffff 00000000 3ffe9af1 00000030
3ffff6f0: bfffffff c00b1004 3ffec810 000b1000
3ffff700: ff000fff 00ffffff 00000099 3ffed138
3ffff710: 3fff135c 00000001 3fff129c 00000030
3ffff720: 3fff135c 00000001 3fff129c 00000030
3ffff730: 3fff135c 3fff129c 3fff129c 00000030
3ffff740: 402191da 3ffef7ac 3ffef7ac 00000022
3ffff750: 3fffc200 40106b64 00000020 40106bac
3ffff760: 00000001 fffffffd 3fffc230 4000050c
3ffff770: 4021957e 00000030 0000001b ffffffff
3ffff780: 40219578 00000000 3ffe956f 00000010
3ffff790: 3fffdab0 00000000 3fffdbc0 00000000
3ffff7a0: 3ffedd7c 3ffe98d4 00000001 3fff1eca
3ffff7b0: 3fff1e94 3ffefb88 3ffefbbd 00000030
3ffff7c0: 00000002 00000000 00000020 40100f22
3ffff7d0: 3ffe99a2 40231c6b 3ffed138 3fff129c
3ffff7e0: 00000000 402250e3 3ffee5d8 40106bac
3ffff7f0: 00000000 00000002 00000000 3ffed138
3ffff800: 3fff1eca 401049a3 3fff129c 3fff1724
3ffff810: 3fff1e94 000000fb ffffffff 000004ca
3ffff820: 00000000 40218e85 3ffef7a8 3fff1724
3ffff830: 3fff1eca 0000008b 00000055 00000022
3ffff840: 3fffc200 40106b64 00000020 40106bac
3ffff850: 3ffefb88 3ffefb88 3fffc230 4000050c
3ffff860: 4021d304 00000030 00000010 ffffffff
3ffff870: 4021d2de 3fff2728 3fff2514 00000022
3ffff880: 3fffc200 40106b64 00000020 40106bac
3ffff890: 0000006e 0000014f 3fffc230 00000022
3ffff8a0: 3fffc200 40106b64 00000020 40106bac
3ffff8b0: 40100296 00000023 3fffc230 4000050c
3ffff8c0: 40210e6a 00000030 00000010 ffffffff
3ffff8d0: 4020ac0f 00000023 3fff1a88 ffff8000
3ffff8e0: 000000c0 3fff1348 00000002 00ffffff
3ffff8f0: 00000000 0000014f 00000000 3fff24dc
3ffff900: 00000000 000000c9 3fff2514 00000030
3ffff910: 4020b400 3fff1348 00000000 40219608
3ffff920: 00000000 3ffe98d4 00000000 00000022
3ffff930: 3fffc200 40106b64 00000020 40106bac
3ffff940: 4020cec8 00000000 3fffc230 4000050c
3ffff950: 401006dc 00000030 00000010 ffffffff
3ffff960: 401006dc 00000023 3fff2510 ffff8000
3ffff970: 00000011 3fff17c0 00000002 00ffffff
3ffff980: 00000000 0000014f 00000000 3ffffe98
3ffff990: fffffcca 3ffffb49 3ffffe98 00000022
3ffff9a0: 3fffc200 40106b64 00000020 40106bac
3ffff9b0: 05c6cd76 000003c0 3fffc230 4000050c
3ffff9c0: 4010200f 00000030 0000001f fffffffe
3ffff9d0: 205f2200 3ff20a00 3ffffaf0 3ffee436
3ffff9e0: 00000000 3ffedc40 000c0240 00000008
3ffff9f0: 3ffed870 00ffffff 00000098 00080000
3ffffa00: 00000000 00000000 0000001f 40104bfd
3ffffa10: 4000050c 00000000 3ffffa50 000000f7
3ffffa20: 40000502 00000030 00000016 fffffc00
3ffffa30: 00000005 fffffdff 40224eb6 4010498c
3ffffa40: 0000008a 3fff1724 0000009e 00000003
3ffffa50: 00000001 fffffffd 00000001 3fffc230
3ffffa60: fffffc00 3fffc200 00000022 00000022
3ffffa70: 3fffc200 40106b64 00000020 40106bac
3ffffa80: 40103d79 3ffedb68 3fffc230 4000050c
3ffffa90: 40100e9e 00000030 00000000 ffffffff
3ffffaa0: 40100db6 00000000 3ffe9934 00000022
3ffffab0: 3fffc200 40106b64 00000020 00000022
3ffffac0: 3fffc200 40106b64 00000020 40106bac
3ffffad0: 4022b335 00000030 3fffc230 4000050c
3ffffae0: 40225618 00000030 00000018 00000022
3ffffaf0: 3fffc200 40106b64 00000020 40106bac
3ffffb00: 3fff1f3e 0000c237 3fffc230 4000050c
3ffffb10: 40231be8 00000030 00000000 ffffffff
3ffffb20: 40231be6 3ffed110 00000014 00002009
3ffffb30: 00080240 3ffed890 00000000 00000022
3ffffb40: 3fffc200 40106b64 00000020 40106bac
3ffffb50: 3fff135c 00000001 3fffc230 4000050c
3ffffb60: 40218e8c 00000030 0000001b ffffffff
3ffffb70: 40218e85 3ffef7b4 00000001 00000022
3ffffb80: 3fffc200 40106b64 00000020 40106bac
3ffffb90: 3ffedd7c 3ffe98d4 3fffc230 4000050c
3ffffba0: 4021957e 00000030 0000001b ffffffff
3ffffbb0: 40219578 00000000 3ffe956f 00000010
3ffffbc0: 3fffdab0 40000000 3fffdbc0 00000000
3ffffbd0: 3ffedd7c 3ffe98d4 00000001 3fff1f42
3ffffbe0: 3fff1f0c 3ffefb88 3ffefbbd 00000030
3ffffbf0: 00000002 00000000 00000020 40100f22
3ffffc00: 3ffe99a2 40231c6b 3ffed110 3fff12b8
3ffffc10: 00000000 402250e3 3ffee5d8 40106bac
3ffffc20: 00000000 00000002 00000000 3ffed110
3ffffc30: 3fff1f42 401049a3 3fff12b8 3fff1724
3ffffc40: 3fff1f0c 00007c00 3ffefb28 3fff1f1c
3ffffc50: 00000000 40218e85 3ffef7a8 3fff1724
3ffffc60: 3fff1f42 0000008a 00000054 3fff1f0c
3ffffc70: 3fff1e68 00000014 3fff1f50 00000022
3ffffc80: 3fffc200 40106b64 00000020 00000022
3ffffc90: 3fffc200 40106b64 00000020 40106bac
3ffffca0: 40000f83 00000030 3fffc230 4000050c
3ffffcb0: 401009c8 00000030 00000019 00000022
3ffffcc0: 3fffc200 40106b64 00000020 40106bac
3ffffcd0: 3ffea070 3ffea244 3fffc230 4000050c
3ffffce0: 40101d51 00000030 00000019 fffffffe
3ffffcf0: 0000000b fffffed4 0000006b 3ffef21c
3ffffd00: 0000000f 00000001 00000080 00000022
3ffffd10: 3fffc200 40106b64 00000020 40106bac
3ffffd20: 00000000 00000000 0000001f 40104bfd
3ffffd30: 4000050c 00000030 00000019 fffffffe
3ffffd40: 40106baf 00000030 00000016 fffffc00
3ffffd50: 00000000 00000000 0000001f 40104bfd
3ffffd60: 4000050c 00000250 cf9c3cf4 60000768
3ffffd70: 40106baf 00000030 00000016 fffffc00
3ffffd80: 40106bac 3ff00004 00000007 00000005
3ffffd90: 3ffe8618 00000927 d521e870 60000768
3ffffda0: fffffffe 60000308 ffffffff 00000020
3ffffdb0: 40106b64 3fffc200 00000022 00000030
3ffffdc0: 00000000 00000000 00000001 3fffc230
3ffffdd0: 40106b64 3fffc200 00000022 00000030
3ffffde0: 3ffe99a5 4010431f 3ffed430 00000100
3ffffdf0: 40101c3d 3ffed430 00000020 40100f22
3ffffe00: 0000000b 48f6e474 3ffede60 00000022
3ffffe10: 3fffc200 40106b64 00000020 00000022
3ffffe20: 3fffc200 40106b64 00000020 40106bac
3ffffe30: 40202c59 00000030 3fffc230 4000050c
3ffffe40: 40201d18 00000030 0000001b ffffffff
3ffffe50: 402019c0 60000310 00000000 00000004
3ffffe60: 00000000 60000840 00000000 fffffffe
3ffffe70: 00000000 3fffc6fc 00000000 00000020
3ffffe80: 00000001 3fffdad0 3ffef630 00000030
3ffffe90: 00000000 3fffdad0 3ffef630 00000030
3ffffea0: 00000000 00000000 00000000 fffffffe
3ffffeb0: ffffffff 3fffc6fc 00000001 3ffef628
3ffffec0: 00000000 3fffdad0 3ffef630 00000030
3ffffed0: 40210fac 40100734 40210fa0 00000000
3ffffee0: 00000000 4bc6a7f0 a8f5c28f 00000000
3ffffef0: 00000000 00000000 4bc6a7f0 00000000
3fffff00: 40104d40 163a4d14 3ffef684 00000000
3fffff10: 3ffeec60 3ffef684 3ffe862c 3ffef684
3fffff20: 3fffdad0 3ffef630 40210f34 3fffefb0
3fffff30: 3ffef684 3fffdad0 00000012 402018eb
3fffff40: 3fffdad0 00000000 3ffef248 4020a4d5
3fffff50: 00000500 0000004f 48e4c5f5 00000001
3fffff60: 00000044 3fff1bc4 3ffef3c0 4021226c
3fffff70: 00000002 00000000 3ffef3c0 3ffef630
3fffff80: 3fffdad0 00000000 3ffef248 4020a6b7
3fffff90: 00000000 00000000 3ffef248 402083e7
3fffffa0: 3fffdad0 00000000 3ffef244 40208edb
<<<stack<<<

Cut and Pasted the above to the `Exception Decoder
and exception decoder just outputs "Decode Failed" noting else.

Any ideas what I am missing?

Weird output from backtrace

This is output from backtrace:

0x400d32b9: BLECharacteristic::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLECharacteristic.cpp line 654
0x400d360d: BLECharacteristicMap::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLECharacteristicMap.cpp line 95
0x400d4df9: BLEService::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLEService.cpp line 342
0x400d4fa9: BLEServiceMap::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLEServiceMap.cpp line 92
0x400d4976: BLEServer::handleGATTServerEvent(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLEServer.cpp line 63
0x400d3d59: BLEDevice::gattServerEventHandler(esp_gatts_cb_event_t, unsigned char, esp_ble_gatts_cb_param_t*) at /home/esp32/Arduino/libraries/ESP32_BLE/src/BLEDevice.cpp line 50
0x400f7165: btc_gatts_cb_to_app at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c line 54
:  (inlined by) btc_gatts_cb_handler at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c line 817
0x400f342e: btc_task at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/core/btc_task.c line 85

You can see that path to my files etc is /home/esp32/Arduino/libraries/ESP32_BLE/src/, but some output lines are similar to windows path /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/bt/bluedroid/btc/. This is not copy/paste app, its modified BLE_server from BLE library.

How to export decoded info?

I'm using Windows Vista, Arduino IDE 1.6.5 and this helpful tool.
But I can't mark and copy decoded info to post it to discussions.
How to export decoded info?

How To: Install and use

Hey Guys! This is a very cool tool to use and it is very easy.

Just follow these installation instructions

When you download into the default Arduino folder, it is owned by Windows Administrator, by default, and will refuse! I suggest to remove the UAC windows annoyance before trying to install, unless you do it from an admin CMD shell.

If you're asked for an ELF file, it simply means you have not yet compiled the sketch, so the program doesn't know where to look for debug traces... Just recompile and open the EspExceptionDecoder.

๐Ÿ‘ ๐Ÿฅ‡

Font size too small

Is there a way to increase the font size? I find it too small for my liking. Thanks.

No elf file in Arduin IDE tools to start EspExceptionDecoder

Hello,
I am Using Arduino IDE for ESP32 on Windows 8.1 machine and recently I have installed EspExceptionDecoder by followed below procedure,

  • Downloaded the tool archive from releases page.
  • In your Arduino sketchbook directory, Unpack the tool into tools directory (the path will look like <home_dir>/Arduino/tools/EspExceptionDecoder/tool/EspExceptionDecoder.jar).
  • Restart Arduino IDE.

After restart I am able to see Tools > ESP Exception Decoder menu item but when I selected menu this will open a new window and asked for elf file. I have no idea which file I have to provide. So can anyone help me to solve this problem?

EspExceptionDecoder-1.1.0.zip - Invalid or corrupt jarfile

tried to take the jarfile for a test drive. Downloaded, confirmed "unblocked" file, yet get this error message when opening directly (I don't usually use the Arduino IDE)
image

fetched from here:

https://github.com/me-no-dev/EspExceptionDecoder/releases/tag/1.1.0

when placed in tool directory:

image

I can compile:

image

but when I click on Tools - ESP Exception Decoder, I see this error:

image

and for the ERROR: xtensa-lx106-elf-gdb.exe not found!, sure enough there's not one to be found in my Documents\Arduino\hardware\esp8266com (or any subdirectories).

I'm using the git version of the ESP8266 library. (gcc version 4.8.2)
SDK:2.2.1(cfd48f3)/Core:win-2.5.0-dev/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-13-g163bb82)/BearSSL:94e9704

So I'm not sure if this is the same or different issue as #34 (does the corrupt jar file cause the trigger of gdb, or does the missing gdb make the jar file look corrupt?)

Not Supported on ESP32

I started with wifi on ESP32. The libraries are probably mixed up with standard arduino wifi.h. I got an exception on core 1 error and tried this promising tool. After starting it tells me Not Supported on ESP32.
I use arduino ide 1.8.3. Restart of the ide or compiling/upload the Sketch again didn't fix it.
Thank you for your support!

Line numbers do not match source code

Hallo,
I just installed EspExceptionDecoder in Arduino IDE 1.8.2 to debug a nasty crash in my Webserver.
However, I have the feeling that the line numbers shown in decoder do not match the real line numbers in the source file. For example:

0x4020ea20: esp_yield at D:\data2\Programme\_Progamming\ArdinoIDE\arduino-1.8.2\hardware\esp8266com\esp8266\cores\esp8266/core_esp8266_main.cpp line 57

If I search the source file line number 57 than:


54 int atexit(void (*func)()) {
55    (void) func;
56    return 0;
57 }
58 extern "C" void ets_update_cpu_frequency(int freqmhz);
59 void initVariant() __attribute__((weak));
60 void initVariant() {
61 }
62
63 extern void loop();
64 extern void setup();
65
66 void preloop_update_frequency() __attribute__((weak));
67 void preloop_update_frequency() {
68 #if defined(F_CPU) && (F_CPU == 160000000L)
69     REG_SET_BIT(0x3ff00014, BIT(0));
70    ets_update_cpu_frequency(160);
71 #endif
72 }

So, how to interprete the line numbers?

Thanks

Running on Windows10

hello,

i am trying to get the decoder installed and working.
I tried all what i can but still no succesfull.
example i have a test.ino in the foder c:\test, then i create the folders
tools
EspExceptionDecoder
tool
EspExceptionDecoder.jar (is this also a folder a the file name?)
=> C:\test\tools\EspExceptionDecoder\tool\EspExceptionDecoder.jar.

When i am unzipping the decoder file i place them into the EspExceptionDecoder.jar folder?

If the EspExceptionDecoder.jar is the actual program, where is it located in the zip folder?

Hope you can help

Not work at a new IDE 1.6.12

After a upgrade to new ide 1.6.12 decoder stop to work.
When I will open a decoder windown I receive this msg

ERROR: neither Varanda_Des.ino.elf or Varanda_Des.cpp.elf were found!
Did you forget to compile the sketch?

But i already compile and make a sketch upload

Support for Windows 10

Hello,

Does this tool work on Windows 10?

I have Arduino 1.8.5 and I followed every inst. on the readme. It is not on the tools menu on my computer.

Does this known?What should i do to get it work?

ERROR: xtensa-lx106-elf-gdb.exe not found!

I just installed the stack trace tool, and I am getting this error message. I have also searched for the tool chain...and found it can be installed from here:
gnutoolchains.com/esp8266/
but after that installation and re starting the Arduino IDE... I am still not getting the stack trace decoder to start.

Thoughts?

Keith

addr2line.exe not found?

my arduino is 1.6.7 esp8266 core is 2.1.0 rc

ERROR: xtensa-lx106-elf-addr2line.exe not found!

Doesn't show up on Win8 IDE1.8.8

Right here in C:\Users\matt\Documents\Arduino\tools is EspExceptionDecoder.java and I can't get it to show up ever since I upgraded to 1.8.8. Is my directory wrong?

Cannot find the files to which the Decoding stack points

I compile with Arduino GUI with ESP32 1.0.4. When i put exception to Exception decoder they repot me files which I cannot find.

Paste your stack trace here13:13:29.452 -> Guru Meditation Error: Core  0 panic'ed
(InstrFetchProhibited). Exception was unhandled.
13:13:29.452 -> Core 0 register dump:
13:13:29.452 -> PC      : 0x00000000  PS      : 0x00060530  A0      : 0x80119ebd  A1      : 0x3ffb4160  
13:13:29.452 -> A2      : 0x3ffd27d4  A3      : 0x3ffd10a8  A4      : 0x3ffd0e88  A5      : 0x3ffd0e4c  
13:13:29.498 -> A6      : 0x0204a8c0  A7      : 0x0c04a8c0  A8      : 0x80119d60  A9      : 0x3ffb4120  
13:13:29.498 -> A10     : 0x3ffd27e4  A11     : 0x3ffd10a8  A12     : 0x3ffb416c  A13     : 0x00000044  
13:13:29.498 -> A14     : 0x00000001  A15     : 0x00000006  SAR     : 0x00000010  EXCCAUSE: 0x00000014  
13:13:29.498 -> EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0x00000000  
13:13:29.498 -> 
13:13:29.498 -> Backtrace: 0x00000000:0x3ffb4160 0x40119eba:0x3ffb41a0 0x40126d85:0x3ffb41c0 0x4012bd8d:0x3ffb4200 0x4013102a:0x3ffb4220 0x4011a8c3:0x3ffb4240 0x40088b7d:0x3ffb4270
13:13:29.545 -> 

results:

PC: 0x00000000
EXCVADDR: 0x00000000

Decoding stack results
0x40119eba: handle_dhcp at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c line 1031
0x40126d85: udp_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/udp.c line 401
0x4012bd8d: ip4_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c line 740
0x4013102a: ethernet_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/netif/ethernet.c line 184
0x4011a8c3: tcpip_thread at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c line 135
0x40088b7d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

MY ELF file is here:

"C:\\Users\\sasa\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\\Users\\sasa\\AppData\\Local\\Temp\\arduino_build_306555/ESP32-Serial-Bridge-master.ino.elf"
Sketch uses 741278 bytes (56%) of program storage space. Maximum is 1310720 bytes.
Global variables use 49648 bytes (15%) of dynamic memory, leaving 278032 bytes for local variables. Maximum is 327680 bytes.
C:\Users\sasa\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 --port COM9 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\sasa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/partitions/boot_app0.bin 0x1000 C:\Users\sasa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/bin/bootloader_dio_80m.bin 0x10000 C:\Users\sasa\AppData\Local\Temp\arduino_build_306555/ESP32-Serial-Bridge-master.ino.bin 0x8000 C:\Users\sasa\AppData\Local\Temp\arduino_build_306555/ESP32-Serial-Bridge-master.ino.partitions.bin 

Allow to decode stack for binaries at any location

The tool works fine when decoding stack trace for ELF/HEX at the Arduino's build directory.
In some cases the binaries may be old (i.e. not freshly built), and they are located at other directory.

Use case:

  1. Build a sketch and deploy it to a device.
  2. Continue development (i.e. modify the code).
  3. Receive crash report from a user for the deployed version.
  4. Feed old HEX/ELF to the decoder along with the stack trace.

At the moment the step 4 should be preceded with extra actions: get corresponding sources from VCS and build them.

Bad jar file

Bad jar file, won't run (not visible) in Arduino IDE 1.8.13, Windows 10.
Version in last archive EspExceptionDecoder 1.1.0 work.

alternate build.path

This tool does not work if you set an alternate build.path in preferences.txt

ERROR: neither sketchname.ino.elf or sketchname.cpp.elf were found!
Did you forget to compile the sketch?

ERROR: xtensa-lx106-elf-addr2line.exe not found!

I have installed the jar and restarted the IDE. The exception decoder appears in the menu but I get a "ERROR: xtensa-lx106-elf-addr2line.exe not found!" when I try to start it.

I can build and download esp8266 apps and the xtensa-lx106-elf-addr2line.exe is in the esp tools directory (under appdata). I am using Win10 and have tried with IDE v1.6.9 and the latest v1.8.0.

I also tried copying xtensa-lx106-elf-addr2line.exe into the same directory as the jar without sucess - any thoughts?

Help, Decoder Failed

I can do esp32 decoder, but with this project on Esp8266 I never got it.
Can someone do the decode for me?

stack>>>
3fff2af0: 3fffbf1c 00000082 3fffbf4c 4024fa9a
3fff2b00: 3fffbf1c 3fffbf4c 00000081 4025079a
3fff2b10: bca05a4c 00000000 00000001 00000040
3fff2b20: 3fffbf7c 3fffbf64 00000040 00000000
3fff2b30: 3fff8674 3fffbe7c 00000041 00000041
3fff2b40: 00000000 00000001 00001099 00000041
3fff2b50: 3fffbf34 3fffbe7c 00000000 0000007f
3fff2b60: 3fffbf4c 00000081 3fffbf4c 0000007f
3fff2b70: 3fffbf4c 3fffbe7c 3fffbe7c 40250a5d
3fff2b80: 00000002 00000001 3fff300c 4024fb40
3fff2b90: 00000100 00000100 3fffbd74 3fffbeec
3fff2ba0: 3fffa0f4 00000100 3fffbe7c 40251c19
3fff2bb0: 3fffbd74 3fffa4ec 00000003 4025588d
3fff2bc0: 00000007 00000076 00000002 00000000
3fff2bd0: 00000100 3fff699b 3fff300c 40255d29
3fff2be0: 3fffa4ec 3fffbd74 84e5e527 40255bb5
3fff2bf0: 3fffa0b4 0000000e 00000003 40255a56
3fff2c00: 3fff60b4 3fffa0b4 3fff699b 00000000
3fff2c10: 00000004 3fffa0b4 3fff699b 4024dcce
3fff2c20: 0573f77a b4b6f0c3 f0925c03 16a44d1d
3fff2c30: a6cd82db 0e5b5b78 99e56d37 92cdd73d
3fff2c40: 567654bd 5635c62a 378e952b 5085f076
3fff2c50: 09ff2de8 3fff2d30 c12bbde6 ef6d9b89
3fff2c60: 95c6b236 97e942db 84e5e527 a1c04609
3fff2c70: f41e6c96 7b467e9b e3933912 f569b1f5
3fff2c80: c7a83273 572d5050 6d3649f7 4b5650eb
3fff2c90: 00000008 3fff2d10 00000008 3fff2d30
3fff2ca0: 00000000 51a8cec0 f3f1c0d8 b416a159
3fff2cb0: e78bfb36 3fff2d30 01ee4003 3fff2e58
3fff2cc0: 00000001 3fff937c 3fff2d30 40254dc9
3fff2cd0: 00000080 00000000 00000000 00000000
3fff2ce0: 00000000 00000000 00000000 00000000
3fff2cf0: 00000000 00000000 00000000 00000000
3fff2d00: 00000000 00000000 00000000 00000000
3fff2d10: 00000000 00030000 2a7f7fa1 3fff2e58
3fff2d20: 00000001 3fff2e54 00000001 40251228
3fff2d30: 00000002 00000000 00000020 40100ec6
3fff2d40: 3ffec042 401042a8 3ffef7b0 d2967cb2
3fff2d50: 00000001 401034c7 3fff0208 613963c5
3fff2d60: 4010392a 6e594071 156e74fe 0d322c97
3fff2d70: e83d36bb a4ca2b96 00000080 00000000
3fff2d80: 4010340e 00000038 7fffffff 00000002
3fff2d90: 00000138 00030000 2a7f7fa1 c9b57456
3fff2da0: 4010228f 00080000 ccbc629a 9ebddda0
3fff2db0: 00000000 5ac559e8 00002200 4000050c
3fff2dc0: 3fffc278 40101f8c 3fffc200 00000022
3fff2dd0: 3fff2de0 5c5c5c5c 401515cb a3df1e3c
3fff2de0: 4010432b 00000030 00000008 ffffffff
3fff2df0: 401043c2 00000011 3fff35b4 3fffa4b2
3fff2e00: 00000036 000000b6 000000a4 00000003
3fff2e10: 00000001 fffffffd 00000001 3fffa47c
3fff2e20: 3fff3f3c 3fffa47c 3fffa4b2 00000030
3fff2e30: 00000000 00000000 00000000 000002a0
3fff2e40: 6e9b23a5 2a86e9a6 4026fe1b 00000000
3fff2e50: ffffffff 00000000 3ffec191 00000000
3fff2e60: 4026fe6a 3ffef760 3fff3b74 00000001
3fff2e70: 4026ff76 3ffef760 3fff3b74 3ffef760
3fff2e80: 00000005 00000005 00000008 3fffa498
3fff2e90: 3ffec042 4026ef1b 3ffef760 3fffa4b2
3fff2ea0: 00000000 4025cd2f 3fff0c78 3fffbc28
3fff2eb0: 00000000 00000002 00000000 3ffef760
3fff2ec0: 3fffa4b2 40104c6f 3fff48f4 3fff3f3c
3fff2ed0: 3fffa47c 00000000 00000000 3ffef7b0
3fff2ee0: 3fffa47c 401043e6 3fff48f4 3fff3f3c
3fff2ef0: 00000036 3ffec8c0 3ffec8c0 00000001
3fff2f00: 00000001 00004288 3fff4948 3fff39c5
3fff2f10: 3fff3990 3fff3990 3fffa47c 401044ac
3fff2f20: 402430fb 3fffa47c 3fffa4b2 40243104
3fff2f30: 00000008 3fff383c 7fffffff 00000000
3fff2f40: 00000022 4010320a 00040000 3fff3840
3fff2f50: 3fff39c5 00000000 3fff3990 40248f24
3fff2f60: 3ffec045 401042c3 00002200 4000050c
3fff2f70: 00000000 3fffa47c 3fffc200 00000022
3fff2f80: 3fff2f90 095bdd6b 3fff04e8 3fffa4c0
3fff2f90: 3fffa47c 3fff399c 3fff3990 4024917c
3fff2fa0: 40240000 3fffa00c 00000001 d41a7220
3fff2fb0: 00000014 3fffa010 3fffa47c 40249c2c
3fff2fc0: 42ad6dcd 3fffbe7c 00000001 00000000
3fff2fd0: 3fffa00c 000000ff 00000000 00000006
3fff2fe0: 00000005 00000000 00000020 40100ec6
3fff2ff0: 3ffec045 401042c3 3ffefaa8 3fffa4d4
3fff3000: 40101be1 00000002 00000486 0000022c
3fff3010: 00000372 095cd762 3fff04e8 40101db2
3fff3020: 00000106 3fff60b4 00000000 40249c92
3fff3030: 00007fff 095cd762 401021f2 00000800
3fff3040: 3fff6991 00000008 0000000a 00000000
3fff3050: 3fff60b4 3fff6991 0000000a 4024b941
3fff3060: 000008ec 3fffa194 000008f3 3fff60b4
3fff3070: 3fff591c 00000007 00860011 3fffa1e8
3fff3080: 00000486 252f62dc e6326066 b9edce9c
3fff3090: bb5c48bd 3fffb7b4 2e801825 000008f3
3fff30a0: 3fff6991 000008f3 3fffa194 4024cf7e
3fff30b0: 654a577e 7fcc0744 8f5d8dee 2584a56d
3fff30c0: dba905e2 3fffc6fc 3fff2540 00000000
3fff30d0: 00000022 3fff726d 3fff726d 3fffb7b4
3fff30e0: 00000000 00000897 00000064 40237ec8
3fff30f0: 0000004a 00000000 00000024 000008f3
3fff3100: 3fff6991 000008f3 3fffa194 000008f3
3fff3110: 3fff6991 000008f3 3fffa194 4024c9c8
3fff3120: b60e2750 00000000 00000000 00000025
3fff3130: 0000005a 3fff6991 3fffa194 4024cda4
3fff3140: 0000000e 3fff69c4 3fffa194 401004d8
3fff3150: 3fff31a8 0000000b 00000010 3fff6064
3fff3160: 4022ae00 3fffa194 3fff31a0 01000000
3fff3170: 3fff31a8 0002650a 3fffa194 4024cb30
3fff3180: 4010500c 3ffeab9c 3fffa124 3fff6064
3fff3190: 3fff9f7c 0002650a 3fffa124 4022b5e1
3fff31a0: 3fffa194 3fffa464 3fff214c 40237c5c
3fff31b0: 00003a98 3fff31e0 3fff3238 4022b620
3fff31c0: 00000000 00000000 3fff9f7c 3fff2470
3fff31d0: 000001d1 3ffeab9c 3fff3220 4022b82f
3fff31e0: 00000000 00000000 3ffeab9c 3fff2470
3fff31f0: 000001d1 3fff3220 3ffeab9c 4022b8d5
3fff3200: 40107470 6dbee940 40107470 6dbee940
3fff3210: 3fff33a8 3fff6164 3fff6164 40233c9d
3fff3220: 40107280 00000000 00003a98 000000ff
3fff3230: 3fff612c 3fff9f7c 3fffa124 3fff9fb4
3fff3240: 00000020 3fff32c4 3fff32c4 402370e3
3fff3250: 3fff1d0c 00000014 3fff32c4 4023712f
3fff3260: 3fff2430 00000c97 3fff32c4 40237161
3fff3270: 3fff32c4 3fff32dc 3fff32c4 402371ae
3fff3280: 3fff1d0c 3fff6164 3fff339c 3fff3390
3fff3290: 3fff33a8 3fff6164 3fff6164 4021eb29
3fff32a0: 40107128 00000000 000003e8 4023712f
3fff32b0: 69616d65 74682e6c 0000006d 3ffea200
3fff32c0: 00000000 3fff9f54 0000001f 00000014
3fff32d0: 00000000 00000000 00000000 3fff6194
3fff32e0: 000007ef 000007e8 3fff33a8 402371ec
3fff32f0: 3ffea0d4 40283934 3fff33a8 40237430
3fff3300: 40288ebc 3fff1cd8 3fff2470 3ffea228
3fff3310: 00000000 3fff1cd8 3fff2470 40221b0f
3fff3320: 3fff5c74 3fff612c 3fff6074 0000001f
3fff3330: 00000016 00000050 00011f40 3fff5c4c
3fff3340: 0000001f 00000017 3fff5c7c 0000000f
3fff3350: 00000000 3fff60c4 0000001f 00000019
3fff3360: 3fff5cac 0000001f 00000011 3fff5cd4
3fff3370: 0000000f 00000000 3fff5cf0 00000002
3fff3380: 000000c8 00000000 00000400 00000000
3fff3390: 3fff5c94 0000000f 0000000a 3fff614c
3fff33a0: 0000000f 00000007 3fff9f2c 0000001f
3fff33b0: 00000017 00000000 00000000 00000000
3fff33c0: 3ffe99a1 3fff8e24 3fff34a0 402370e3
3fff33d0: 40282c3c 0000000e 3ffea228 3ffea23c
3fff33e0: 3fff339c 3fff3510 3fff3420 4023d5a8
3fff33f0: 00000001 3fff3510 3fff34a0 3fff34a0
3fff3400: 00000001 0001027f 00000000 40221e74
3fff3410: 00000001 3fff3510 3fff3420 40223cb1 <
3fff3420: 3fff8e24 0000000f 00000001 3fff544c
3fff3430: 0000000f 00000000 3fff57cc 0000000f
3fff3440: 00000000 3fff57e4 0000000f 00000000
3fff3450: 3fff8e9c 0000000f 00000000 3fff8eb4
3fff3460: 0000000f 00000000 3fff8ecc 0000000f
3fff3470: 00000000 3fff8ee4 0000000f 00000000
3fff3480: 3fff8efc 0000000f 00000000 3fff8f14
3fff3490: 0000000f 00000000 3fff2470 402221a0
3fff34a0: 00000000 00000000 00000000 00000000
3fff34b0: 00000000 00000000 3fff3510 402370e3
3fff34c0: 3fff58cc 3fff4254 0000000f 0000000e
3fff34d0: 00000001 00000002 3fff3498 0000000f
3fff34e0: 0000005f 3fff3420 00000000 40237264
3fff34f0: 3ffe003b 00000029 3fff2470 3fff2530
3fff3500: 0000005f 0000003b 3fff2470 40223e93
3fff3510: 3fff57a4 0000001f 00000012 3fff58cc
3fff3520: 0000001f 00000012 3fff2528 3fff2530
3fff3530: 3fffdad0 00000000 3fff2528 40224a43
3fff3540: 3fffdad0 00000000 3fff2528 40237e9c
3fff3550: feefeffe feefeffe 3fff2540 40100710
<<<stack<<<

EspExceptionDecoder crash

Arduino IDE v 1.6.10
EspExceptionDecoder 1.0.6
If i want to start the decoder it crashed:
What do i'am wrong?

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getBuildPath()Ljava/io/File;
at com.ficeto.esp.EspExceptionDecoder.getBuildFolderPath(EspExceptionDecoder.java:160)
at com.ficeto.esp.EspExceptionDecoder.createAndUpload(EspExceptionDecoder.java:262)
at com.ficeto.esp.EspExceptionDecoder.run(EspExceptionDecoder.java:344)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

No output after pasting stack trace (1.1.0)

I previously had 1.0.6, then updated to the latest version after realizing the update addressed the inaccurate line issue, but I haven't had any success with the updated tool.

I originally was getting the error below, but resolved that after downloading the file and pasting it in the appropriate directory.
ERROR: xtensa-lx106-elf-gdb.exe not found!
#36

Although I can open the tool, the problem I have now is that nothing happens after pasting in a stack trace.

Has anyone else experienced this? I have Arduino 1.8.5, and Windows 7 64 bit.

Not Starting.

I am using arduino 1.6.9 IDE, whenever i try to use EspExceptionDecoder i get following error:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getBuildPath()Ljava/io/File; at com.ficeto.esp.EspExceptionDecoder.getBuildFolderPath(EspExceptionDecoder.java:160) at com.ficeto.esp.EspExceptionDecoder.createAndUpload(EspExceptionDecoder.java:262) at com.ficeto.esp.EspExceptionDecoder.run(EspExceptionDecoder.java:344) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Decoder seems to hang on "Decoding stack results"

Recently installed EspExceptionDecoder and it decodes the Exception fine, but never returns stack results.

Is there any log I can check to help debug this?

Arduino IDE 1.6.12 on Mac OS X 10.11.6,
Adafruit Feather Huzzah ESP8266

Input:

Exception (29):
epc1=0x40214c4b epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000004 depc=0x00000000

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

>>>stack>>>
3fffff30: 00000008 3fff024c 3ffecbc0 40214c40
3fffff40: 3ffecbc0 402193d8 3ffecbc0 3ffea694
3fffff50: 3ffea694 00000074 00000000 00000034
3fffff60: 00000002 00000018 40222b0f 3ffecbc0
3fffff70: 3ffea688 3fffdcc0 3ffe9240 3ffe9240
3fffff80: 00000000 3ffecbc0 00000002 00000000
3fffff90: 402223cf 3fffdab0 00000000 00000004
3fffffa0: 3ffe9240 40000f49 3fffdab0 40000f49
<<<stack<<<

Output

Exception 29: StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores
PC: 0x40214c4b
EXCVADDR: 0x00000004

Decoding stack results

ESP8266 2.6.3 and ELF file

After upgrade from 2.5.2 esp8266 library to 2.6.3 with use EspExceptionDecoder the IDE ask my ELF file. How can I fix it? Where is this file?

v 1.0.6 won't run in Arduino 1.6.11 and up-to-date Java

This release gives following output in Arduino console:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Sketch.getBuildPath()Ljava/io/File; at com.ficeto.esp.EspExceptionDecoder.getBuildFolderPath(EspExceptionDecoder.java:160) at com.ficeto.esp.EspExceptionDecoder.createAndUpload(EspExceptionDecoder.java:262) at com.ficeto.esp.EspExceptionDecoder.run(EspExceptionDecoder.java:344) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Tested on Windows 7 x64 SP1, Arduino 1.6.11, ESP Exception Decoder 1.0.6, Java 8, build 11.

Decoder version 1.0.2 works just fine.

I can't install this tool in my arduino IDE.

Hello
i checked your tools details and follow step as per suggested but i can not install it.
So, help me install this tool.I really need this tool.
I am using Arduino IDE 1.6.12 and one more think i could not find your jar file.

Exception decoder does not decode exception cause

This is more like feature request than bug issue. Currently exception decoder decode only call stack but not Exception cause, reset cause etc information whan can be also very usefull.

Example newest git master version of esp8266 arduino core crash if it get too busy with http.

Exception (2):
epc1=0x3ffea958 epc2=0x00000000 epc3=0x00000000 excvaddr=0x3ffea958 depc=0x00000000

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

stack>>>
3fffff20: 3fff23d0 3ffefb50 3ffeebf0 401077d8
3fffff30: 4021f5f9 3ffeebf0 3ffefb50 06812c93
3fffff40: 3fff567c 00001000 4021fad2 00000008
3fffff50: 00000000 00000000 4021fb97 3ffeeca4
3fffff60: 3ffefb50 020838d3 3ffefb50 40201fe0
3fffff70: 40239941 3ffeeca4 3ffefb50 06811e4d
3fffff80: 40239986 3fffdab0 00000000 3fffdcb0
3fffff90: 3ffefb78 3fffdad0 3fff0eac 402133b3
3fffffa0: 40000f49 40000f49 3fffdab0 40000f49
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(3,6)

Decoding 11 results
0x401077d8: pvPortZalloc at C:\Arduino\arduino-1.6.11\hardware\esp8266com\esp8266\cores\esp8266/heap.c line 54
0x4021f5f9: pm_set_sleep_time at ?? line ?
0x4021fad2: pm_get_sleep_type at ?? line ?
0x4021fb97: pm_get_sleep_type at ?? line ?
0x40201fe0: delay_end at C:\Arduino\arduino-1.6.11\hardware\esp8266com\esp8266\cores\esp8266/core_esp8266_wiring.c line 40
0x40239941: ets_timer_handler_isr at ?? line ?
0x40239986: ets_timer_handler_isr at ?? line ?
0x402133b3: loop_task at C:\Arduino\arduino-1.6.11\hardware\esp8266com\esp8266\cores\esp8266/core_esp8266_main.cpp line 56

But that does not tell much why it crash. Probably cause codes tell something about reason but they are not decoded?

ERROR: xtensa-lx106-elf-gdb.exe not found!

I installed EspExceptionDecoder to Documents\Arduino\tools\EspExceptionDecoder\tool
which contains only EspExceptionDecoder.jar. When I try to start the decoder from the menu the output window shows the error: ERROR: xtensa-lx106-elf-gdb.exe not found! I am using v1.8.5 on Windows10 64bit. I have compiled for esp8266 and esp32 many times previously.

no item in Arduin IDE tools to start EspExceptionDecoder

I try to install the EspExceptionDecoder in the german Arduino IDE.
What ever Folder I use to unzip the files the tool menu remains empty.
So I m looking for a detailed screeenshot showing the full path of the Folder an ALL files in the folder.
And please give a screenshot of prferences.txt ( Settings of the IDE )
Thank you

xtensa file missing

Whenever I want to use the tool I receive the following message:

"ERROR: xtensa-lx106-elf-addr2line.exe not found!"

Where is the tool looking for it because mine is in : \AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\bin\

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.