Runtime Watches and DMCI – PIC32 MCUs Only

For PIC32MZ/MK devices without data capture but with instruction trace, the trace mechanism can be used for runtime watches. If you have a device PIM with a trace connector, you can connect a trace cable to enable runtime watches. See Instruction Trace Connections.

If your device does not have a PIM with a trace connector, you can make a connection from your device trace pins to the emulator logic port by following the schematics of the cable connections. See “Trace Interface Kit Specification” (DSS50002531) or PIM with Trace Layout.

The runtime watch can provide data polling which can be used by the Data Monitoring and Control Interface (DMCI) plug-in.

To Install the DMCI Plug-in:

  1. Select Tools > Plugins.
  2. Once the Plugins window is open, click on the Available Plugins tab.
  3. Find DMCI and check the checkbox next to it.
  4. Click Install and follow the screens.

Also, see the "Add Plug-in Tools" in the "Additional Tasks" section of MPLAB® X IDE documentation.

To Set Up Runtime Watches:

  1. Build the project (In the Projects window, right-click on the project name and select Build). The project must be built to see the available symbols.
  2. Select Window > Debugging > Watches to open the Watches window.
  3. Right-click in the window and select New Runtime Watch. Select the symbol or SFR you wish to watch in the New Run Time Watch window. Click OK.
  4. Select Tools > Embedded > DMCI > DMCI Window to open the DMCI dialog.
  5. Set up the DMCI for this runtime watch. See the Help > Help Contents, Plug-In Tools section for the DMCI help file.
  6. Begin a debug session by following the menu path: Debug > Debug Project. Input data using DMCI controls or view data in a DMCI graphical window.
© 2019 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.