Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.233

Navigation: Plugins > Architecture-specific plugins > Cortex-M

Scroll Prev Top Next More

Fault Reports

In this topic:

Toolbar

Troubleshooting

 

 

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.

 

Plugin-CortexFaultReports-report

 

 

Toolbar

Icon

Description

HWtoolsPlugin-rh850timePerformance-refresh

Manually update the window

ButtonHelp

Go to winIDEA Help  

 

 

Context menu

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.

 

 

i-icon

To display or hide columns, right-click on a column header and select what you want to see.

 

 

Troubleshooting

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.

 

Warning_orange

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.

 

Plugin-CortexFaultReports-exceptions

 

 

 

 

More resources

hmtoggle_arrow0 Fault and Exception Debug with an use case in winIDEA IDE - Webinar Debug and Trace on Cortex-M4 based Microcontrollers
hmtoggle_arrow0 Measuring Runtime with DWT Cycle Counter with an use case in winIDEA IDE - Webinar Debug and Trace on Cortex-M4 based Microcontrollers

 

Copyright © 2024 TASKING Germany GmbH