The workflow for STM involves a complex series of interactions between the applications involved.
Generate Barman agent code for STM using the Barman Generator Wizard dialog in Streamline.
Select STM Interface as the data storage backend.
Specify the STM parameters for your project.
Note
Barman reserves the channels following the channel number that you specify. The number of channels reserved is the Maximum number of CPU cores specified on the previous page of the wizard.
Complete the remainder of the wizard as for a standard bare-metal project.
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 STM data into its RAM buffer.
Run the application on a target.
When you want to end the profiling, stop the application.
Dump the STM 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 STM trace into a directory using the following command:
trace dump <directory> STM
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.