Fault Reports
In this topic:
Cortex Fault Reports core plugin for winIDEA is used to view Cortex exceptions and the exception context in a dedicated plugin window. The plugin can be loaded by selecting View / [<device>.COREn Cortex-M / Fault Reports.
Example: CPU stopped in memory exception handler.
Icon |
Description |
---|---|
Manually update the window |
|
Go to winIDEA Help |
Right-click in the plugin window to open the context menu.
Copy Python access snippet - Copy SDK code snippet to extract the content from the plugin window.
Auto Fit - Arrange all the columns to fit in the plugin window.
Options - Set colors and fonts.
Help - Open winIDEA Help.
To display or hide columns, right-click on a column header and select what you want to see. |
•Only hard fault exceptions are enabled on the CPU by default. If you would like to see more detailed exception description, then other types of exceptions need to be manually enabled in the code. This can be achieved by writing 1 to USGFAULTENA, BUSFAULTENA and MEMFAULTENA bitfields located in the SHCSR register. Unless these exceptions are enabled the CPU will always throw a hard fault exception.
•Exception Context is only available on the entry point of the exception handler.
Exception handler can corrupt the data stored on the stack. To ensure that the CPU is stopped at the handler entry point it is recommended that you enable exception catch mechanism in winIDEA. |
In order to do so, open Hardware / CPU Options / CPU (Core0) dialog and check the exceptions as shown below. Example: Cortex Exceptions Catch Setting.
|