therealprof / panic-ramdump

A Rust `no_std` embedded panic crate to record the panic reason in RAM
Apache License 2.0
10 stars 2 forks source link

Pre-RFC: Fancy mode #1

Closed jamesmunns closed 4 years ago

jamesmunns commented 5 years ago

It would be nice to have a panic handler that does the following. I wanted to see if you think this made sense for panic-ramdump, or whether I should make a separate crate.

This would enable crates to determine/report the panic message on a soft reboot, or perhaps even detect a cold boot (or at least a reboot that didn't preserve RAM).

CC @korken89

korken89 commented 5 years ago

I quite like this! Would be quite good when not having a full blown panic handler such as semihosting or ITM, but still get messages out in whatever is the preferred way.

jamesmunns commented 4 years ago

This will be split into a new crate.