Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic Handler Improvement #6

Open
kassane opened this issue Mar 28, 2024 · 0 comments
Open

Panic Handler Improvement #6

kassane opened this issue Mar 28, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kassane
Copy link
Owner

kassane commented Mar 28, 2024

Current implementation

/// panic handler for esp-idf
pub fn panic(msg: []const u8, _: ?*@import("std").builtin.StackTrace, _: ?usize) noreturn {
@setCold(true);
sys.esp_log_write(log.default_level, "panic_handler", "PANIC: caused by %s - timestamp: %ul\n", msg.ptr, sys.esp_log_system_timestamp());
//TODO: get the stack trace and print it!
while (true) {
asm volatile ("" ::: "memory");
}
}

@kassane kassane added the enhancement New feature or request label Mar 28, 2024
@kassane kassane added the help wanted Extra attention is needed label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant