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

esp-backtrace: Option to reset instead of halting #1586

Open
bugadani opened this issue Oct 12, 2023 · 4 comments
Open

esp-backtrace: Option to reset instead of halting #1586

bugadani opened this issue Oct 12, 2023 · 4 comments
Labels
package:esp-backtrace Issues related to the esp-backtrace package

Comments

@bugadani
Copy link
Contributor

Halting is fine for development, but I can't really expect end-users to grab a pair of tweezers and short a pair of pads in case their device panics. At least not in every one of my projects :)

@bjoernQ
Copy link
Contributor

bjoernQ commented Oct 13, 2023

True - until now this is mainly meant to help during development. Not really thought about the production use case.

I could also think about some additional features like persisting the backtrace and panic/exception information - then the application could optionally send this to a server on next boot

@bugadani
Copy link
Contributor Author

Persisting is a good idea. To spin it further, I think it should be opt-in, with a user-provided buffer. A bit tricky to use because the buffer needs to be placed in an uninitialized section, but one can then choose how much memory one can sacrifice for something that, in an ideal world would never be used :)

@jessebraham jessebraham transferred this issue from esp-rs/esp-backtrace May 23, 2024
@jessebraham jessebraham changed the title Option to reset instead of halting esp-backtrace: Option to reset instead of halting May 23, 2024
@jessebraham jessebraham added the package:esp-backtrace Issues related to the esp-backtrace package label May 23, 2024
@MabezDev MabezDev added this to the 0.21.0 milestone Sep 16, 2024
@MabezDev MabezDev removed this from the 0.21.0 milestone Sep 30, 2024
@MabezDev
Copy link
Member

There are a couple of ways to achieve this behaviour as a work around:

  • A custom halt using the custom-halt feature
  • Setting up a watchdog which will reset the board when it panic's on halt

@bugadani
Copy link
Contributor Author

Oh look whose issue this is. 👀 We could contribute an esp-hal feature to panic_reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:esp-backtrace Issues related to the esp-backtrace package
Projects
Status: Todo
Development

No branches or pull requests

4 participants