This section describes how the Fault component operates and how the fault information can be analyzed.
The Fault component is implemented in the target application using the software component CMSIS-View:Fault:Storage which adds the source file ARM_FaultStorage.c to the application.
This source file provides an ARM_FaultSave function which is used to save the fault information into an uninitialized part of the RAM which can then be analyzed on-chip, or on a host computer using a debugger. When using semihosting, cloud storage, or another remote location for storing the log file, you can do post-processing using eventlist Utility.
Fault information is stored in an ARM_FaultInfo structure, residing in uninitialized RAM memory, when the ARM_FaultSave function is executed from an exception handler.
To see and analyze the details of a fault, there are the following options:
This section contains the the technical data of the Fault component firmware.
RAM:
The Fault component uses the ARM_FaultInfo structure to save information when the fault occurs. The size depends on the Arm Cortex-M core for which the code was compiled:
ROM:
The functions of the Fault component require the following amounts of ROM memory: