You copied the Doc URL to your clipboard.

Connecting to a Cortex®-M device using DSTREAM

You can capture data for Streamline on a Cortex-M device by connecting a DSTREAM unit to the Instrumentation Trace Macrocell (ITM) Stimulus Port on the target and making minor changes to project_types.xml file for your board.

To connect Streamline to a Cortex-M target:


  1. Build the RTX library with debug info and the preprocessor define DBG_MSG. ITM instrumentation requires this.
  2. Connect a DSTREAM unit to the ITM port on your target.
  3. Make sure your target is connected to your host.


    For Streamline to be compatible with a target, there must already be a DSTREAM connection for that board in the configdb that supports debug and trace.
  4. Add the following lines of code to the project_types.xml for your board at the end of the activity XML node that corresponds to the DSTREAM debug and trace connection:


    The projects_types.xml file for a target is located in <DS-5_install_directory>/sw/debugger/configdb/Boards/<Your_Board_Type>/<Your_Board>/.

    Open this file and add the above lines to the DSTREAM activity node. If your target is not available in the default Debug Configuration, then you may need to create a custom Debug Configuration in a separate folder. For example, /home/user/configdb.

    This process is explained in more detail here:

  5. Reset the target after a capture starts in order to enable RTX to output the ITM task switch information. Task names are only emitted over ITM at the time of the task creation.
Your target appears in the Connection Browser of the Streamline Data view.
Was this page helpful? Yes No