#reset #panic #panic-handler

no-std panic-reset

Set panicking behavior to reset

2 releases

Uses old Rust 2015

0.1.1 Jan 18, 2022
0.1.0 Nov 12, 2019

#346 in No standard library

Download history 1543/week @ 2024-07-28 1446/week @ 2024-08-04 1422/week @ 2024-08-11 1273/week @ 2024-08-18 1119/week @ 2024-08-25 1655/week @ 2024-09-01 1240/week @ 2024-09-08 1000/week @ 2024-09-15 1119/week @ 2024-09-22 598/week @ 2024-09-29 425/week @ 2024-10-06 453/week @ 2024-10-13 334/week @ 2024-10-20 541/week @ 2024-10-27 484/week @ 2024-11-03 568/week @ 2024-11-10

1,940 downloads per month
Used in sdvx-controller-firmware

MIT/Apache

7KB

panic-reset

Build Status

Set the panicking behavior to reset the chip, implemented for Cortex-M processors

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Set the panicking behavior to reset

This crate contains an implementation of panic_fmt that simply reset the chip.

Usage

#![no_std]

use panic_reset as _;

fn main() {
    panic!("argument is ignored");
}

Breakable symbols

With the panic handler being #[inline(never)] the symbol rust_begin_unwind will be available to place a breakpoint on to halt when a panic is happening.

Dependencies

~600KB