mirror of https://github.com/ARMmbed/mbed-os.git
If the fault handler was hit before the stdio console was used and initialised, the initialisation code caused a "mutex in ISR" trap, stopping the register dump from happening. Temporarily set the `error_in_progress` flag at the top of the fault handler, and restore it before calling `mbed_error`. Take the opportunity to suppress fault dumps on recursive crashes, much as is done inside `mbed_error`. |
||
---|---|---|
.. | ||
TOOLCHAIN_ARM | ||
TOOLCHAIN_GCC | ||
TOOLCHAIN_IAR | ||
mbed_fault_handler.c | ||
mbed_fault_handler.h |