awesome-embedded-rust icon indicating copy to clipboard operation
awesome-embedded-rust copied to clipboard

Where to put panic implementations?

Open jonas-schievink opened this issue 6 years ago • 2 comments

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 avatar Apr 30 '19 12:04 jonas-schievink

Forgot about panic-never.

jonas-schievink avatar May 07 '19 15:05 jonas-schievink

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

Disasm avatar May 07 '19 15:05 Disasm