CMSIS-View  
Record program events, display status information, and analyze execution faults
 
Loading...
Searching...
No Matches
Fault Record

Decode and record the Cortex-M Exception Fault information via Event Recorder. More...

Functions

void ARM_FaultRecord (void)
 Output decoded fault information via Event Recorder.
 

Description

Decode and record the Cortex-M Exception Fault information via Event Recorder.

For an overview see Exception Fault Analysis.

This section contains the function of the component CMSIS-View:Fault:Record that decodes and records the Cortex-M Exception Fault information using the Event Recorder.

Function Documentation

◆ ARM_FaultRecord()

ARM_FaultRecord ( void  )

Output decoded fault information via Event Recorder.

Decode stored fault information and send information using Event Recorder events.

Code Example

#include "EventRecorder.h"
#include "ARM_Fault.h"
int main() {
EventRecorderInitialize (EventRecordAll, 1U); // Initialize and start Event Recorder
if (ARM_FaultOccurred() != 0U) { // If fault information exists
ARM_FaultRecord(); // Output decoded fault information via Event Recorder
EventRecorderStop(); // Stop Event Recorder
}
// ...
}