Catch Hard Faults on Cortex-M devices and save out crash dump to be used by CrashDebug.