mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-18 00:12:56 +00:00
use asm::udf in panic-log
to match panic-probe behavior UDF makes probe-run exit with a non-zero exit code
This commit is contained in:
parent
291110e75d
commit
49a254f8ce
|
@ -8,7 +8,6 @@ use cortex_m::asm;
|
||||||
fn panic(info: &PanicInfo) -> ! {
|
fn panic(info: &PanicInfo) -> ! {
|
||||||
log::error!("{}", info);
|
log::error!("{}", info);
|
||||||
|
|
||||||
loop {
|
// abort instruction: triggers a HardFault exception which causes probe-run to exit
|
||||||
asm::bkpt()
|
asm::udf()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue