mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-23 14:28:18 +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
1 changed files with 2 additions and 3 deletions
|
@ -8,7 +8,6 @@ use cortex_m::asm;
|
|||
fn panic(info: &PanicInfo) -> ! {
|
||||
log::error!("{}", info);
|
||||
|
||||
loop {
|
||||
asm::bkpt()
|
||||
}
|
||||
// abort instruction: triggers a HardFault exception which causes probe-run to exit
|
||||
asm::udf()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue