The workflow for ITM involves a complex series of interactions between the applications involved.
Generate Barman agent code for ITM using the Barman Generator Wizard dialog in Streamline.
Select ITM Interface as the data storage backend.
Note
Barman uses ports 16-19 for ITM.
Complete the remainder of the wizard as for a standard bare-metal project.
If you selected a Cortex®-M processor, select the number of cycles for the PC sampling interval.
Add the Barman agent files that the wizard generates to your project.
Instrument your bare-metal application code with Barman agent calls (initialization, periodic sampling).
Compile and link your project.
Connect your target to a DSTREAM device.
Configure your target for collecting ITM data into its RAM buffer.
Run the application on a target.
When you want to end the profiling, stop the application.
Dump the ITM trace from the DSTREAM device into a directory.
Let Streamline import the trace file dump. Streamline reformats it and prepares it for analysis.
Note
If you are using Arm® Development Studio, you can dump the ITM trace into a directory using the following command:
trace dump <directory> ITM
If you do not launch your bare-metal application from within Arm Development Studio, you must handle connecting to DSTREAM, obtaining the trace file, and importing it into Streamline.