Skip to content
Snippets Groups Projects
Commit 7945e382 authored by Per's avatar Per
Browse files

panic_semihosting not finished

parent 20ba874c
No related branches found
No related tags found
No related merge requests found
[package]
name = "nucleo"
version = "0.2.1"
authors = ["per lindgren"]
description = "panic over semihosting"
keywords = ["arm", "cortex-m", "panic"]
categories = ["embedded", "no-std"]
license = "MIT OR Apache-2.0"
repository = "not defined"
[dependencies.cortex-m-semihosting]
version = "0.2.0"
#[dependencies.cortex-m-rt]
#version = "0.3.5"
#features = ["abort-on-panic"]
#[dependencies.cortex-m]
#version = "0.3.0"
[profile.dev]
lto = true
debug = true
[profile.release]
lto = true
debug = true
#[lang = "panic_fmt"]
unsafe extern "C" fn panic_fmt(
_: ::core::fmt::Arguments,
_: &'static str,
_: u32,
_: u32,
) -> ! {
hprint!("panicked at '");
::cortex_m_semihosting::io::write_fmt(_args);
hprintln!("', {}:{}", _file, _line);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment