Crate panic_probe
source ·Expand description
Panic handler for probe-run
.
When this panic handler is used, panics will make probe-run
print a backtrace and exit with a
non-zero status code, indicating failure. This building block can be used to run on-device
tests.
§Panic Messages
By default, panic-probe
ignores the panic message. You can enable one of the following
features to print it instead:
print-rtt
: Prints the panic message over plain RTT (viartt-target
). RTT must be initialized by the app.print-defmt
: Prints the panic message via defmt’s transport (note that defmt will not be used to efficiently format the message).
Functions§
- Trigger a
HardFault
viaudf
instruction.