mbed-os/platform/source/TARGET_CORTEX_M
Kevin Bracey 0af4ac6484 Avoid crashes during fault handler
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`.
2019-12-11 10:45:56 +00:00
..
TOOLCHAIN_ARM Fixes the bug of having &mbed_fault_context argument instead of mbed_fault_context in mbed_fault_handler. 2019-08-21 16:38:36 +09:00
TOOLCHAIN_GCC Fixes the bug of having &mbed_fault_context argument instead of mbed_fault_context in mbed_fault_handler. 2019-08-21 16:38:36 +09:00
TOOLCHAIN_IAR Fixes the bug of having &mbed_fault_context argument instead of mbed_fault_context in mbed_fault_handler. 2019-08-21 16:38:36 +09:00
mbed_fault_handler.c Avoid crashes during fault handler 2019-12-11 10:45:56 +00:00
mbed_fault_handler.h mbed fault handler: changed the 2nd parameter type. 2019-08-21 17:02:34 +08:00