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

Where to put panic implementations? #179

Open
jonas-schievink opened this issue Apr 30, 2019 · 5 comments · May be fixed by #469
Open

Where to put panic implementations? #179

jonas-schievink opened this issue Apr 30, 2019 · 5 comments · May be fixed by #469
Assignees
Labels
enhancement New feature or request

Comments

@jonas-schievink
Copy link
Contributor

There's quite a few panic implementations now, so I think it'd be useful to list them here. I'm not sure where exactly they should be put though, because some of them are platform-independent while others aren't. Personally I think these belong in their own section.

List of crates:

  • panic-halt: Halts the processor on panics
  • panic-abort: Causes an abort on panics (nightly-only)
  • panic-ramdump: Writes the panic message into the beginning of RAM and enters an infinite loop; the message can be extracted by attaching a debugger (Cortex-M only)
  • panic-semihosting: Prints the panic message via semihosting to an attached debugger (Cortex-M only)
  • panic-itm: Prints the panic through the chip's ITM to a debugger attached to the SWO pin (Cortex-M with ITM only)
@jonas-schievink
Copy link
Contributor Author

Forgot about panic-never.

@Disasm
Copy link
Member

Disasm commented May 7, 2019

Maybe these deserve to be in the panic-section too:

@berkus berkus self-assigned this Nov 22, 2024
@berkus berkus added the enhancement New feature or request label Nov 22, 2024
@berkus berkus linked a pull request Nov 22, 2024 that will close this issue
@berkus
Copy link
Member

berkus commented Nov 24, 2024

PR is ready for review.

@BartMassey
Copy link
Member

panic-rtt ?

@berkus
Copy link
Member

berkus commented Nov 28, 2024

@BartMassey pls review

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

Successfully merging a pull request may close this issue.

4 participants