Skip to content
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

EspSaveCrash for esp32 ? #5

Open
NickChungVietNam opened this issue Dec 4, 2018 · 5 comments
Open

EspSaveCrash for esp32 ? #5

NickChungVietNam opened this issue Dec 4, 2018 · 5 comments

Comments

@NickChungVietNam
Copy link

First of all, many thanks to krzychb created this library.
So does EspSaveCrash support for esp32 ? If not, how can i do ?

@krzychb
Copy link
Owner

krzychb commented Dec 8, 2018

Hi @NickChungVietNam,

I am happy you like this library!

As for now arduino-esp32 is not yet ready to implement similar functionality.
I see two options how do it:

  1. Add a user-defined hook to the ESP-IDF panic handler and then use it from EspSaveCrash library as is done for ESP8266.

  2. Leverage existing functionality of "Save core dump to flash" by enabling it in arduino-esp32 and prepare convenience functions to:

    • provide the number of core dump snapshots already saved in flash
    • erase the contents of the core dump in flash
    • printout the contents of the core dump in flash

    See also Change sdkconfig / "make menuconfig" properties espressif/arduino-esp32#229

In both cases the first step is to update existing esp-idf or arduino-esp32 repository.

@cvonk
Copy link

cvonk commented Apr 15, 2019

Same here. I got spoiled with the EspSaveCrash.
The good news is that the ESP-IDF natively supports core dumps. However the option is disabled in arduino-esp32. To enable the option, you would have to rebuild the libraries similar to issue #1142, except that you would enable the core dump of course.

@MathieuDeprez
Copy link

Hi,
I have worked on a solution with Arduino framework v1.0.6 and PlatformIO.
Here is my Github repo where I explain everything in the README file.

https://github.com/MathieuDeprez/ESP32_CoreDump_Arduino_1.0.6

@cvonk
Copy link

cvonk commented Sep 12, 2021 via email

@Laxilef
Copy link

Laxilef commented Oct 22, 2024

Hi @krzychb
Thank you for your work!

As for now arduino-esp32 is not yet ready to implement similar functionality.

Look at the changes in this PR:
https://github.com/espressif/arduino-esp32/pull/8711/files

Using set_arduino_panic_handler we can set a handler for saving the dump. Do you think it is now possible to add support for esp32 to the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants