|Non-Confidential||PDF version||ARM DUI0446Z|
|Home > Debug and Trace Services Layer (DTSL) > DTSL Trace > Decoding STM STPv2 output|
The ARM® STM CoreSight component generates a STPv2 compatible data stream as its output. The STPv2 specification is a MIPI Alliance specification which is not publicly available. To allow clients to consume STM output, DTSL has a built-in decoder which turns STPv2 into an STM object stream.
To consume STM output, a client should do the following:
ISTMSourceMatcherinterface. This object tells the decoder which STM master IDs and channel IDs to decode. The STM package includes three implementations of the
ISTMSourceMatcherinterface. These are
STMSourceMatcherSingle. If none of these implementations covers your needs, you can also create a new class which implements the
STMChannelReaderobject, specifying the trace capture device object and the source matcher object.
ISTMObjectReceiverinterface, to receive the STM objects.
ISourceReaderobject. Pass this, along with the
ISTMObjectReceiverobject, to the
readmethod on the
readmethod decodes the trace into an STM object stream, and passes these objects to the