µVISION DEBUGGER: How to enable Vector Catch Support for Cortex-M Core
Information in this knowledgebase article applies to:
Is there a way to stop my target system in a µVision debug session (ULINK2, ULINKpro, CMSIS-DAP, J-Link or others) without using breakpoints when an exception occurs?
Yes, a Cortex-M core can be halted when an exception occurs if the core debug register DEMCR is initialized properly. The following events are available:
In order to initialize the DEMCR register at the beginning of a debug session and after every reset, the attached file VectorCatch.INI or VectorCatch_Buttons.INI can be used. Both can be opened in configuration wizard mode. The file VectorCatch_Buttons.INI additionally defines Toolbox buttons which make it easier to set/clear these bits while debugging.
This initialization file should be specified in the dialog Options for Target - Debug - Initialization File on the right hand side. It should look like this:
Request the files attached to this knowledgebase article.
Last Reviewed: Wednesday, April 18, 2018
of your data.