EnergyTrace User Guide

EnergyTrace ™ technology is a power analyzer tool for CCS that measures the application’s current consumption. The tool can be used stand-alone as a power profiling tool, or in EnergyTrace++ mode within a debug session for code analysis to help optimize the application for ultra-low-power consumption.

EnergyTrace stand-alone Instructions

The following discusses the necessary steps to use EnergyTrace in stand-alone-mode on CC13x2 or CC26x2 LaunchPad. In stand-alone mode, the debugger is not active and the displayed current consumption is what to expect for the final application. As opposite to EnergyTrace++ where the debug interface on the device is active and the current consumption from the debugger will be added to the displayed current.

  1. Flash the target device with the application to be analyzed.
  2. Make sure no debug session is active and click the EnergyTrace Button as seen in Figure 119.
../_images/fig-energytrace-standalone-button.png

Figure 119. Start EnergyTrace

  1. A dialog with instructions on how to use EnergyTrace Stand-alone Measurement Mode will pop-up. Click Proceed to continue.
  2. The first time EnergyTrace is being used within a CCS Workspace some settings needs to be set. In the EnergyTrace Window, click on the Advanced Menu icon and select Preferences, as Figure 120. shows.
../_images/fig-energytrace-preferences-button.png

Figure 120. EnergyTrace Preferences menu

  1. Under Target Connection, set Connection to XDS110 and Voltage to 3300.0 mV. ET-HDR Range Selector shall be set to Low current, narrower range higher accuracy. If you want to save the captured data to a .cvs-file for further analysis, select Raw data to CSV file. You can also select the battery cell type the application will be using to get an estimated life time of the application. Click Ok to save the preferences.
../_images/fig-energytrace-standalone-settings.png

Figure 121. EnergyTrace Settings

  1. Select how long you want to capture data by clicking the Select Measurement Duration button as in Figure 122.
../_images/fig-energytrace-standalone-time.png

Figure 122. Select Measurement Duration

  1. To start capturing data, click the green play button.
../_images/fig-energytrace-standalone-start.png

Figure 123. Start trace collection

  1. When EnergyTrace is finished capturing data, review the application’s power profile and have a closer look in the Current graph. Figure 124. shows a zoomed-in current graph of BLE advertising.
../_images/fig-energytrace-standalone-graph.png

Figure 124. EnergyTrace Current Graph

EnergyTrace++ Instructions

To run EnergyTrace++, which allows more detailed data regarding power consumption, the Target Configuration file must be configured to allow for a different debugging interface. Specifically, to use EnergyTrace++, the debugger must be set to 4-pin cJTAG mode. The following discusses the necessary steps to modify the Target Configuration file and view EnergyTrace++ data on CC13x2 or CC26x2 LaunchPad.

Warning

In EnergyTrace++ mode, the displayed current consists of the application current consumption AND the device debugger current consumption. Use EnergyTrace stand-alone mode to display only the application current consumption.

EnergyTrace++ Update Target Configuration Instructions

  1. In the CCS, using the Project Explorer, navigate to the targetConfigs folder.
  2. Double click on the *.ccxml file to open a configuration menu as seen in Figure 125.
../_images/fig-ccxml-config-menu.png

Figure 125. Open .ccxml file

  1. On the bottom of the window, navigate to the Advanced tab as seen in Figure 126.
../_images/fig-advanced-settings.png

Figure 126. Navigate to Advanced Settings Tab

  1. In the All Connections windows pane, click on the highest level from the list tree as seen in Figure 127.
  2. In the Connection Properties window pane, modify the JTAG/SWD/cJTAG Mode parameter to cJTAG (1149.7) 4-pin standard mode from the dropdown menu as seen in Figure 127.
../_images/fig-connection-properties.png

Figure 127. Configure 4-pin cJTAG Mode

  1. After selecting this option, click Save in the previous All Connections window pane.
  2. Close the .ccxml file.

Using EnergyTrace++ Instructions

This section assumes the user has already configured their Target Configuration settings to point use cJTAG (1149.7) 4-pin standard mode as described in the EnergyTrace++ Update Target Configuration Instructions section above.

  1. After the Build has successfully completed, Debug the project.
  2. Open the EnergyTrace Tool by clicking the button seen below in Figure 128.
../_images/fig-energytrace-pp-button.png

Figure 128. Enable EnergyTrace Tool

  1. On the far right of the EnergyTrace Technology window, click the Switch to EnergyTrace++ button as seen in Figure 129.
../_images/fig-switch-to-energytrace-pp.png

Figure 129. Switch to EnergyTrace++ Mode

  1. You should see an additional States tab popup.
  2. Run the Debug session, click the green arrow button (F8).
  3. You should now be able to observe the enhanced EnergyTrace++ details in the EnergyTrace Technology and States tabs as seen in Figure 130. and Figure 131.
../_images/fig-energytrace-pp-tab.png

Figure 130. Sample EnergyTrace++ Tab

../_images/fig-energytrace-pp-tab-states.png

Figure 131. Sample EnergyTrace++ “States” Tab

Troubleshooting

If EnergyTrace is not able to properly setup remote controls for the device, try closing CCS, resetting your Evaluation Board and starting again.