This project is a simple Fault component example running on Arm Cortex-M7 microcontroller simulated by Arm Virtual Hardware with the VHT_MPS2_Cortex-M7 model simulator.
The application allows triggering of specific faults upon which the fault information is saved and system is reset. When system restarts the fault information is output via the Event Recorder.
The fault information can also be inspected with Component Viewer in a debug session.
Note: This example runs on the Arm Virtual Hardware simulator and does not require any hardware.
Required packs:
Missing packs can be installed by executing the following csolution
and cpackget
commands:
csolution
command to create .cprj
project files (for Arm Compiler 6 toolchain): cbuild
command to create executable files: Execute the following steps:
The generated fileNote: The Arm Virtual Hardware executables have to be in the environment path, otherwise absolute path to the
VHT_MPS2_Cortex-M7.exe
(e.g.c:\Keil\ARM\VHT\VHT_MPS2_Cortex-M7
) has to be provided instead ofVHT_MPS2_Cortex-M7
.
EventRecorder.log
contains the events that were generated during the example execution. This file is the input for the eventlist
utility which can be used for further analysis.The fault triggering is done by entering a number via simulator console (see possible values below).
Fault.Debug+VHT_MPS2_Cortex-M7.cprj
with the uVision$K\ARM\VHT\VHT_MPS2_Cortex-M7.exe
armcortexm7ct
.\vht_config.txt
.\debug.ini
To analyze the result eventlist
utility is needed, copy the executable eventlist
file to the same folder where EventRecorder.log
is located.
To process EventRecorder.log
file with the eventlist
utility in Windows Command Prompt (cmd.exe) execute the following command: