Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeed Platform
      • Silicon Labs Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware? >
      • Matter with Silicon Labs MG24
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Remote E-Paper Weather and Message Board
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Air Quality Monitoring
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

XDS110 Debug Probe with EnergyTrace​

Although all the LaunchPad boards from Texas Instruments come with a programmer emulator, not all feature EnergyTrace to measure power consumption. That is the case with the CC1310 LaunchPad I used on my Low Power Home Network Weather Monitoring project.

The XDS110 JTAG Debug Probe (TMDSEMU110-U) is an external programmer emulator with EnergyTrace. It can be extended with the XDS110 EnergyTrace™ High Dynamic Range (ETHDR) Debug Probe Add-On (TMDSEMU110-ETH) to perform more accurate measures on the power consumption.

The hardware was sampled by Texas Instruments.
Picture

Hardware

The XDS110 JTAG Debug Probe (TMDSEMU110-U) provides two ports: the main for debugging, the auxiliary for additional features like serial and EnergyTrace. 

It connects to the laptop through a micro-USB and features two LEDs, although barely visible.

The box includes 2 cables and 4 adaptors.

Picture
Picture
Picture
The main cable connects to the 2x10 debugging port and comes with three adaptors.
  • 2x5 0.05"
  • 2x10 0.05" 
  • 2x10 0.1" 
The auxiliary cable connects to the 2x7 auxiliary port and has a single adaptor.

The 1x10 0.1" board exposes the serial port, some GPIO inputs and outputs, and the supply pins for EnergyTrace.
Picture
The XDS110 EnergyTrace™ High Dynamic Range (ETHDR) Debug Probe Add-On (TMDSEMU110-ETH) connects on the expansion port on top of the XDS110 and provides higher accuracy with increased range and faster sample rate.
Picture
  • Range is 1 μA to 120 mA or 800 mA instead of 500 nA to 100 mA.
  • Sampling rate is 256 k samples/s instead of 2 k samples/s.  

The range is selected by software between 1 μA to 120 mA and 1 μA to 800 mA. However, sampling rate is not. 

Faster sampling rate implies a limited time window. Recommended time window for sampling is 10 s, so I used the TMDSEMU110-U alone as the protocol runs for 10 mn.
Picture

Connecting to the Board

I've tested the XDS110 Debug Probe with EnergyTrace with the following boards:
  • LaunchPad CC1310
  • LaunchPad MSP432​
  • Launchpad SensorTag Kit CC1352R

On the CC1310 LaunchPad, connection wasn't the easiest one, as the 2x10 to 2x5 SWD adaptor features no fool-proof connector and no indication for pin 1, contrary to the other supplied adaptors.

On the Launchpad SensorTag Kit CC1352R, room is really limited, preventing from adding any BoosterPack on top of the LaunchPad.
​
So I had no choice but to build my own adapter for the Launchpad SensorTag Kit CC1352R with two 2x5 SWD connectors.
Additional features like power for EnergyTrace and serial are provided by with another 2x7 to 1x12 adaptor. 

Each of 12 are spaced by 0.1" and clearly labeled.

​However, the LEDs are hard to read, as they are on the other side close to the USB port.
For the states and peripherals of the MCUs or EnergyTrace++, we need all the connections (pictured).

For power consumption alone, the connector on the right should be removed.

Picture

Software

The official IDE Code Composer Studio includes EnergyTrace, with parameters, acquisition and graphs

Call the menu Windows > Preferences and go to the EnergyTrace page.
  • Select between EnergyTrace and EnergyTrace++.
  • Select Cell Type = CC2032 or 2xAA.
  • Set Voltage = 3300.0 mv.
  • Select between Low and High current for the ET-HDR Range Selector.
  • Check Raw data to CSV file to export the data as CSV to process it with a spreadsheet.
  • Confirm with Apply and Close.
Picture
Double click on the .ccxml file of the project to edit the properties.
  • On the Basic tab, set Connection = XDS110 USB Debug Probe and select the Board.
  • On the Advanced tab, define Power Selection = Probe supplied power, enter Voltage = 3.3 V, and set Mode = cJTAG 4-pin standard mode. 
​Save and perform a Test Connection.
Ensure to use the Run > Run Free command to ignore the breakpoints, as debugging increases power consumption.
Picture

EnergyTrace

The Current graph is in green and displays power in nA. Here is the trace for the short active period of acquisition and transmission.
​
Picture
When in deep sleep, power consumption averages 13700 nA or 13.7 μA only.
Picture
The summary provides different metrics. an interesting one is the estimated battery life.

This sets a new record of 542 days for a CR2032 coin cell battery, almost 1 ½ years for the nodes of the project Low Power Home Network Weather Monitoring.

Picture

EnergyTrace++

The Current graph is in pale blue and no longer displays power units, but relative current.

​But the interesting part of EnergyTrace++ relies on monitoring the states and peripherals of the 3 cores of the CC1310.

Picture
The States graph shows the states and peripherals of the 3 cores of the CC1310: main MCU labeled CPU, RF for radio and Sensor Controller.

The main MCU awakes from deep sleep and turns active, while radio transitions from synthesiser active to transmit.

Blue lines shows the active peripherals. 
Picture
The summary provides a large assortment of statistics for both runtime and energy. 

Here, low power mode deep sleep represents 98,7% of runtime but 97,9% of energy.
Picture

Command-Line Alternative

Using EnergyTrace from within Code Composer Studio throws random errors like "Bad energy trace data was detected in trace stream". This is due to the fact EnergyTrace requires a significant share of resources.

​It appears the USB XDS110 debug probe is more stable than the built-in programmer-debugger. Similarly, the command line utility stune for Windows requires fewer resources. It outputs a comma-separated-file that can be processed with Excel.

    

Current and Energy Measures Consistency

However, there is an issue with the consistency between the Current and the Energy measures and graphs. 

The Energy graph reports cumulated power usage in joule while the Current reports instant current in nA.

After the peak of power related to radio transmission ca. 22700 ms, the CC1310 goes back to low power mode.
  • The Current graph still reports ~4.1 mA for 343 ms.
  • The Energy graph stays flat after the peak.

This issue seems to be inherent to the EnergyTrace technology, as answered at the thread CCS8.1.0 — EnergyTrace Current and Energy Graphs Consistency from the E2E forum.
Picture
As a solution, values need to be exported and the .csv file opened with Excel. Then current can be derived from cumulated Energy (uJ), and then converted into current in A.  

On graph shown right, 
the Current measures are in blue, and the derived instant Energy calculations in orange, albeit rather noisy.
Picture
Release 9.0.1 of CCS has fixed the issue. The two series Current and Energy are consistent now.

As before, 
the Current measures are in blue, and the derived instant Energy calculations in orange albeit rather noisy. 

Picture

​Conclusion

The major feature of the XDS110 is EnergyTrace, with a high level of insight through different methods.

As always, Texas Instruments provides excellent documentation. Here are some interesting links:
  • XDS Target Connection Guide
  • JTAG Connectors
  • Debugging JTAG Issues

Let's hope the consistency between the EnergyTrace measures could be improved and more prominent warnings be mentioned in both the documentation and in Code Composer Studio.
Picture

Pros

  • High level of insight
  • Graphics and statistics
  • Great documentation

Cons

  • Not fool-proof cables
  • Clunky adaptors
  • No standalone software

Wrap-Up

  • High level of insight
  • Graphics and statistics

Links

  • Texas Instruments website
  • XDS110 JTAG Debug Probe (TMDSEMU110-U) product page
  • XDS110 EnergyTrace™ High Dynamic Range (ETHDR) Debug Probe Add-On (TMDSEMU110-ETH) product page
  • Code Composer Studio
  • E2E forum
Picture

​Posted: 09 Aug 2018
Updated: 17 Aug 2018, 02 May 2019, 04 Mar 2020
Powered by Create your own unique website with customizable templates.