Replies: 1 comment 4 replies
-
On Xtensa e.g. this #![no_std]
#![no_main]
use core::fmt::Write;
use esp_backtrace as _;
use esp_hal::{delay::Delay, prelude::*};
use esp_println::println;
#[entry]
fn main() -> ! {
let _peripherals = esp_hal::init(esp_hal::Config::default());
let delay = Delay::new();
loop {
println!("Hello World!");
delay.delay(1.secs());
foo();
}
}
#[inline(never)]
fn foo() {
bar();
}
#[inline(never)]
fn bar() {
baz();
}
#[inline(never)]
fn baz() {
panic!("oh no");
} Produces this
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the past I recall seeing backtraces when my code or some library code triggered a panic.
Now I don't and I need it to troubleshoot some issue.
These are the pieces I found as relevant to this and have in my code, but it still doesn't work:
In cargo.toml I have:
In config.toml for my esp32s3 I have:
In main.rs I have:
Beta Was this translation helpful? Give feedback.
All reactions