awesome-embedded-rust
awesome-embedded-rust copied to clipboard
Where to put panic implementations?
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)
Forgot about panic-never.