Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Tracking variables of a DAVE™ project in Debug mode - KBA235672

Tracking variables of a DAVE™ project in Debug mode - KBA235672

BinduPriya_G
Community Manager
Community Manager 250 replies posted First like received 50 sign-ins
Community Manager

Tracking variables of a DAVE™ project in Debug mode - KBA235672

Version: **

Micrium uC-Probe XMC is used to track the variable values without pausing the debug session.

Do the following to track the variables:

  1. Download Micrium uC-Probe XMC and install the application.
  2. In DAVE™ IDE, build and debug the project of your choice. To start the debug session, click Resume icon as shown in Figure 1.
BinduPriya_G_0-1656414502590.png
Figure 1    Starting the debug session

  1. Open Micrium uC-Probe XMC application. Go to File > New Workspace to create a new workspace as shown in Figure 2.
BinduPriya_G_1-1656414545220.png


Figure 2    Creating new workspace


  1. A new workspace is created with a project folder and a Data Screen is automatically added. If not, go to Insert Screens > Data Screen as shown in Figure 3.
BinduPriya_G_2-1656414616865.png

 

 Figure 3   Inserting data screen into a project


  1. Select the right family in the ToolBox window as shown in Figure 4.
BinduPriya_G_3-1656414783785.png
Figure 4   Selecting the XMC device family in Toolbox window

  1. After selecting the right family, click Settings in the Application group under the File tab as shown in Figure 5.
BinduPriya_G_4-1656414882580.png

 

Figure 5  electing the Settings icon

  1. Select J-Link under Debug Interfaces of the Settings window as shown in Figure 6. Ensure that the settings used are correct.
BinduPriya_G_5-1656414916732.png

 

 Figure 6   Configuring debug interface and related settings


  1. To import the .elf file, click ELF icon from the Symbol Browser window as shown in Figure 7.
BinduPriya_G_6-1656415069103.png

 

Figure 7   Selecting the ELF icon


  1. Navigate to the debug folder of the DAVE™ project and select the elf file [.../<DAVE workspace>/<DAVE project>/Debug/<DAVE project>.elf]. The elf file is displayed as shown in the Figure 8.
BinduPriya_G_7-1656415100988.png

 

 Figure  8   Imported ELF file


  1. In the Toolbox, select a suitable tool to view the live variations of the required variable. For example, select Line Chart under Charts as shown in Figure 9.
BinduPriya_G_8-1656415154430.png

 

Figure 9 Selecting Line Chart

  1. To add a Line Chart, drag and drop Line Chart onto the Data Screen as shown in Figure 10.
BinduPriya_G_9-1656415181986.png

Figure 10  Drag and drop Line Chart to DataScreen

  1. Click the Properties Editor icon to modify the properties of Line Chart. Figure 11 shows various properties which can be modified as required.

 

BinduPriya_G_4-1656414335494.png

 

Figure 11   Properties editor window for Line Chart

  1. Now, expand the imported .elf file. Drag and drop the variable to be monitored live onto the Line Chart as shown in Figure 12.
BinduPriya_G_3-1656414287417.png

 

Figure 12    Adding variable to Live Chart

  1. Once added, the variable will be displayed at the bottom of Line Chart as shown in Figure 13.
BinduPriya_G_2-1656414252388.png

 

Figure  13   Assigned variable displayed in Line Chart

  1. Click Run in the Application group under the File tab to view the live changes of the variable as shown in Figure 14.

 Note :    The Debug session in DAVE™ must be active (resumed) before clicking on Run in Micrium uC-Probe XMC.

BinduPriya_G_1-1656414210793.png

 


BinduPriya_G_0-1656414184767.png

 

Figure 14    Live tracking of the variable
Contributors