{"id":26788203,"url":"https://github.com/tornado67/yaeed","last_synced_at":"2026-04-06T06:33:19.738Z","repository":{"id":285042902,"uuid":"956897833","full_name":"tornado67/yaeed","owner":"tornado67","description":"yet another esp exception decoder","archived":false,"fork":false,"pushed_at":"2025-04-14T14:57:25.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-05T00:07:23.340Z","etag":null,"topics":["arduino","arduino-platform","decoder","esp32","esp32-arduino","esp8266","exception","iot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tornado67.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-29T04:29:36.000Z","updated_at":"2025-08-18T20:05:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c0490b3-1206-4245-a952-c8ff85995727","html_url":"https://github.com/tornado67/yaeed","commit_stats":null,"previous_names":["tornado67/yaeed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tornado67/yaeed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornado67%2Fyaeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornado67%2Fyaeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornado67%2Fyaeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornado67%2Fyaeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tornado67","download_url":"https://codeload.github.com/tornado67/yaeed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tornado67%2Fyaeed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","arduino-platform","decoder","esp32","esp32-arduino","esp8266","exception","iot"],"created_at":"2025-03-29T13:16:17.676Z","updated_at":"2026-04-06T06:33:19.729Z","avatar_url":"https://github.com/tornado67.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaeed - Yet Another ESP Exception Decoder\n\nA stupidly simple Python script to decode ESP32 and ESP8266 stack traces using an ELF file and a stack trace input. \n\n## Features\n\n- Decodes ESP32 and ESP8266 stack traces.\n- Extracts exception codes and their meanings (e.g., `Illegal instruction`, `LoadStoreError`).\n- Parses key registers like `PC` and `EXCVADDR`.\n- Converts instruction addresses (e.g., `0x400d999f`) to function names and file-line references using `addr2line`.\n- Supports input from either a file or command-line argument.\n\n## Requirements\n\n- **Python 3.x**: Ensure Python 3 is installed on your system.\n- **Xtensa Toolchain**: The `xtensa-esp32-elf-addr2line` tool must be available in your PATH or specified manually.\n  - Install it via the ESP-IDF or PlatformIO toolchain.\n- **ELF File**: Generated during the compilation of your ESP32/ESP8266 project (e.g., `firmware.elf`).\n\n## Installation\n\n1. Clone or download this repository:\n   ```bash\n   git clone https://github.com/yourusername/yaeed.git\n   cd yaeed\n   ```\n2. Ensure the Xtensa toolchain is installed and xtensa-esp32-elf-addr2line is accessible:\n   ```\n   xtensa-esp32-elf-addr2line --version\n   ```\n\n## Usage\n\nRun the script with an ELF file and either a stack trace file or raw stack trace text.\n\n**Decode a stack trace from a file:**\n\n```\necho \"Backtrace: 0x400d999f:0x3ffcfeb0 0x400dc82e:0x3ffcff00 0x4010064e:0x3ffcff70\" \u003e stacktrace.txt\n\npython3 yaeed.py -e ~/myproject/.pio/build/esp32dev/firmware.elf -s stacktrace.txt\n```\n\n**Decode raw stack trace** \n\n```\npython3 yaeed.py -e ~/myproject/.pio/build/esp32dev/firmware.elf -t \"Backtrace: 0x400d999f:0x3ffcfeb0 0x400dc82e:0x3ffcff00\"\n```\n\n## Options\n\n```\n  usage: \n  \n  yaeed.py [-h] [-e ELF] [-s TRACEFILE] [-t TRACE] [--addr2line ADDR2LINE] [--verbose]\n  -h, --help            Show this help message and exit\n  -e, --elf ELF         Path to the ELF file from the sketch compilation\n  -s, --tracefile TRACEFILE\n                        Path to the file containing the stack trace\n  -t, --trace TRACE     Stack trace content as a string\n  --addr2line ADDR2LINE Path to addr2line executable (default: xtensa-esp32-elf-addr2line)\n  --verbose             Print verbose debugging output\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftornado67%2Fyaeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftornado67%2Fyaeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftornado67%2Fyaeed/lists"}