Skip to main content

APP_HARD_FAULT

Static APP_HARD_FAULT 

Source
pub static mut APP_HARD_FAULT: UnsafeCell<usize>
Expand description

This is called in the hard fault handler. When set to 1 this means the hard fault handler was called. Marked pub because it is used in the cortex-m* specific handler.

n.b. If the kernel hard faults, it immediately panic’s. This flag is only for handling application hard faults.

Because this is a global static mut variable, we can only access it from inline assembly.