SWRA478D February   2015  – January 2019 CC1310 , CC1312PSIP , CC1312R , CC1314R10 , CC1352P , CC1352P7 , CC1352R , CC2640 , CC2640R2F , CC2640R2F-Q1 , CC2642R , CC2642R-Q1 , CC2650 , CC2650MODA , CC2652P , CC2652R , CC2652R7 , CC2652RB , CC2652RSIP

 

  1.   Trademarks
  2. 1Introduction
    1. 1.1 Acronyms
  3. 2Standby
  4. 3Understanding Bluetooth Low Energy Power Metrics
  5. 4SimpleLink Bluetooth Low Energy Wireless MCUs
  6. 5Power Measurement Setup – Preparing the DUT
    1. 5.1 Requirements
    2. 5.2 Embedded Software
    3. 5.3 Hardware
      1. 5.3.1 CC26x2R LaunchPad
    4. 5.4 BTool (Optional)
  7. 6Measuring Power Consumption With a DC Power Analyzer
    1. 6.1 Test Setup
      1. 6.1.1 Analysis Software Setup
    2. 6.2 Measurement Using Scope
    3. 6.3 Analysis
      1. 6.3.1 Advertising Event
      2. 6.3.2 Connection Event
      3. 6.3.3 Power Consumption Calculator
  8. 7EnergyTrace
    1. 7.1 Modifying the rfPacketTX Example
  9. 8References
  10. 9Revision History

EnergyTrace

EnergyTrace is available on all CC13x2 and CC26x2 LaunchPads. The tool can be used stand-alone, as a power profiling tool, or in EnergyTrace++ mode (4-pin JTAG required) within a debug session for state monitoring to help optimize the application for ultra-low-power consumption. This section focuses on the steps necessary to run EnergyTrace in stand-alone-mode in CCS. In this mode, the debugger is not active and the displayed current consumption is what to expect for the final application. Since the previous sections have focused on Bluetooth Low Energy, this section will use one of the proprietary examples to show how to use EnergyTrace. Please note that the CC13x2 Proprietary RF User’s Guide [26] has a section with info regarding EnergyTrace.

The rfPacketTx example (available for our CC13x2 devices) was used running on the CC1352R1 LaunchPad [20].

The example can be found and downloaded using Resource Explorer (see Figure 7-1).

GUID-9DDC8D3B-306F-4329-807A-9D9189EF0C98-low.png Figure 7-1 rfPacketTx in Resource Explorer

After building the example, it should be downloaded to the LaunchPad and the following steps should be done:

  1. Remove all jumpers on the LaunchPad between the XDS debugger and the device, except for the XDS110 Power, the 3V3 and RXD jumpers (see Figure 7-2). It is important that the XDS110 jumper is mounted in the "XDS110 Power" position when the LaunchPad is powered up, otherwise the calibration of EnergyTrace will fail. The UART driver in the SDK configures the UART RX pin without internal pull-up. To avoid current leakage in the input buffer, the pin must always be firmly pulled to a logic level. This can be achieved by keeping the RXD jumper on (connecting the debugger output to the UART RXD input).
    GUID-8F324B77-B62B-494E-8361-8BD6629863B7-low.png Figure 7-2 Jumper Settings
  2. If the jumpers were not set correctly BEFORE powering the board, trigger a re-calibration of EnergyTrace by power cycling the LaunchPad (disconnect and re-connect the micro-USB cable).
  3. EnergyTrace requires some configurations the first time it is being used within a CCS workspace. Go to the menu `Window` and select `Preferences` (see Figure 7-3).
    GUID-451C045E-D89C-4995-AC60-F08D91276953-low.png Figure 7-3 Preferences
  4. Navigate to the `EnergyTrace Technology` window and configure it as shown in Figure 7-4.
    GUID-229FA26B-2A49-43E9-A957-7D5527C88CF5-low.png Figure 7-4 EnergyTrace Technology Configuration

    If post-processing of the acquired data is wanted, select the ‘Raw data to CSV file’ checkbox. If this checkbox is selected, you can, after EnergyTrace is finished capturing data, select the 'Save current energy profile' button, to save a .csv file. The default location for this file will be under your project workspace.

  5. Click the EnergyTrace Button (see Figure 7-5).
    GUID-D3372E84-AF8B-4005-8909-FBBE05E2FD8A-low.png Figure 7-5 EnergyTrace Button

    A dialog with instructions on how to use the EnergyTrace Stand-alone Measurement Mode will pop-up. Click ‘Proceed’ to continue.

  6. Select how long you want to capture data by clicking the ‘Set Measurement Duration’ button (see Figure 7-6).
    GUID-6DB4DAF7-F8DA-42AA-A766-2032CAAA91F5-low.png Figure 7-6 Set Measurement Duration
  7. Click the green play button to start capturing data (see Figure 7-7). The red LED on the XDS110 debugger should be turned on, and will be so for the duration of the EnergyTrace capture.
    GUID-F6799BEC-53BC-4923-A705-6E11C1DAC8B5-low.png Figure 7-7 Start Trace Collection
  8. When EnergyTrace is finished capturing data, review the application’s power profile and have a closer look at the current graph GUID-038E21D4-F20B-45CD-89B6-C2ECD324156B-low.gif.

Figure 7-8 shows the current profile for the rfPacketTX example taken over 1 s. From the plot, it is easy to identify the packet interval of 500 ms and to verify that the device enters Standby in-between packets. If you want to zoom in on the current graph, you can use the magnifying glass symbol.

GUID-830FA613-6196-44EA-A8EA-67090ADB5993-low.png Figure 7-8 Current Profile for rfPacketTx (without modifications)