{"id":15163161,"url":"https://github.com/mp-se/esp32s2_coredump","last_synced_at":"2025-09-30T17:30:27.134Z","repository":{"id":237434581,"uuid":"654746139","full_name":"mp-se/esp32s2_coredump","owner":"mp-se","description":"esp32s2 example for how to use the coredump feature","archived":true,"fork":false,"pushed_at":"2023-06-16T21:10:05.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-29T18:35:22.168Z","etag":null,"topics":["coredump","esp32","esp32s2"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mp-se.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-06-16T21:10:03.000Z","updated_at":"2024-02-06T08:23:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f22173d-e291-4c66-87b7-6e41e973f4ef","html_url":"https://github.com/mp-se/esp32s2_coredump","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"29a2a64efb6218807d4d7f7475b6f1f9aa217818"},"previous_names":["mp-se/esp32s2_coredump"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp-se%2Fesp32s2_coredump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp-se%2Fesp32s2_coredump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp-se%2Fesp32s2_coredump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mp-se%2Fesp32s2_coredump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mp-se","download_url":"https://codeload.github.com/mp-se/esp32s2_coredump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234753664,"owners_count":18881436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["coredump","esp32","esp32s2"],"created_at":"2024-09-27T02:20:15.422Z","updated_at":"2025-09-30T17:30:26.826Z","avatar_url":"https://github.com/mp-se.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is an example on how to get exception (core dump) data from a crashed ESP32S2. The easy way is to use a debugger but this might happend when you dont have a debugger attached so this is a good way to capture that error in a production environment. \n\nCore dump is enabled by default but there needs to be a core dump partition for it to work as in the below example. \n\n```\n# Name,Type,SubType,Offset,Size,Flags\nnvs,data,nvs,0x9000,0x5000\notadata,data,ota,0xe000,0x2000\napp0,app,ota_0,0x10000,0x1c0000\napp1,app,ota_1,0x1d0000,0x1c0000\nspiffs,data,spiffs,0x390000,0x60000\ncoredump,data,coredump,0x3F0000,0x10000\n```\n\nUse the PC value to find out the adress where it crashed. \n\nCreate a dump of the elf file to see what line of code caused the crash. This path might vary depending on what version you have installed.\n\n```\n\u003cplatformio install dir\u003e\\packages\\toolchain-xtensa-esp32s2\\bin\\xtensa-esp32s2-elf-objdump.exe -S .\\firmware.elf \u003e dump.txt\n```\n\nOn my device the crash was on adress; 0x40081746 and this points to the line of code that casused it to crash.\n\n```\n    Serial.println(\"Crashing....\");\n40081734:\tfa4ab1        \tl32r\ta11, 4008005c \u003c_stext+0x3c\u003e\n40081737:\tfa3ba1        \tl32r\ta10, 40080024 \u003c_stext+0x4\u003e\n4008173a:\t000f25        \tcall8\t4008182c \u003c_ZN5Print7printlnEPKc\u003e\n    delay(500);\n4008173d:\tf4a1a2        \tmovi\ta10, 0x1f4\n40081740:\t0099a5        \tcall8\t400820dc \u003cdelay\u003e\n    *ptr = 0x10; // Cause crash\n40081743:\t00a082        \tmovi\ta8, 0\n40081746:\t10a092        \tmovi\ta9, 16\n40081749:\t004892        \ts8i\ta9, a8, 0\n```\n\nHappy debugging.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmp-se%2Fesp32s2_coredump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmp-se%2Fesp32s2_coredump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmp-se%2Fesp32s2_coredump/lists"}