Skip to content

Commit 009d02c

Browse files
nordic-krchnashif
authored andcommitted
doc: services: debugging: Add Coresight Trace Deformatter documentation
Add documenation for Coresight Trace Deformatter. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 287583b commit 009d02c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. _cs_trace_defmt:
2+
3+
ARM Coresight Trace Deformatter
4+
###############################
5+
6+
Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a
7+
single output stream. Formatter is using 16 byte frames which wraps up to 15 bytes of
8+
data. It is used, for example, by ETR (Embedded Trace Router) which is a circular RAM
9+
buffer where data from various trace streams can be saved. Typically tracing data is
10+
decoded offline by the host but deformatter can be used on-chip to decode the data during
11+
application runtime.
12+
13+
Usage
14+
#####
15+
16+
Deformatter is initialized with a user callback. Data is decoded using
17+
:c:func:`cs_trace_defmt_process` in 16 bytes chunks. Callback is called whenever stream changes or
18+
end of chunk is reached. Callback contains stream ID and the data.
19+
20+
API documentation
21+
*****************
22+
23+
.. doxygengroup:: cs_trace_defmt

doc/services/debugging/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Debugging
1212
debugmon.rst
1313
mipi_stp_decoder.rst
1414
symtab.rst
15+
cs_trace_defmt.rst

0 commit comments

Comments
 (0)