You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_logging.rst
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,27 +148,21 @@ Reading the logs
148
148
149
149
To read the dictionary-based STM log output, do the following:
150
150
151
-
1. Set up the log capture.
151
+
1. Start capturing the log with the ``nrfutil trace stm`` command.
152
+
Use the following command pattern, with ``<domain_id>`` being the ID of the domain which the application is running on, ``<port>`` being the serial port used for output, and ``<app_name>`` being the application name:
152
153
153
-
Use the ``nrfutil trace stm`` command to start capturing logs from the device, specifying the database configuration for each domain ID, along with the serial port, baud rate, and output type::
* ``<domain_id>`` is the ID of the domain which the application is running on.
160
-
It should be in decimals, not in hexadecimals.
161
-
When using several domains, use a comma (`,`) to separate each domain in the list.
162
-
* ``<app_name>`` is the application name.
163
-
* ``<port>`` is the serial port used for output.
164
-
|serial_port_number_list|
165
-
* The output can be either the console (``--stdout ascii``) or a file (the :file:`out.txt` file if ``--output-ascii out.txt``).
166
-
167
-
#. Capture and decode the logs.
168
-
169
-
nrfutil will capture the log data from the specified UART port and use the provided dictionary databases to decode the logs into a human-readable format.
170
-
The tool sends the decoded logs to the specified output (either the console or the :file:`out.txt` file in the example).
163
+
The output can be either the console (``--stdout ascii``) or a file (the :file:`out.txt` file if ``--output-ascii out.txt``).
171
164
165
+
#. When done, stop tracing by pressing CTRL-C.
172
166
#. Read the terminal or open the output file to review the decoded log messages.
173
167
174
168
The output contains timestamps and the log messages in a human-readable format.
@@ -191,7 +185,7 @@ The following are the prefixes used to indicate the cores:
191
185
Fast Lightweight Processor (FLPR), ``flpr``, 0x2d
192
186
Peripheral Processor (PPR), ``ppr``, 0x2e
193
187
194
-
For more information on ``nrfutil trace``, see `nrfutil-trace`_.
188
+
For more information, see `Capturing STM trace data`_ in the nRF Util documentation.
Copy file name to clipboardExpand all lines: doc/nrf/links.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -939,6 +939,8 @@
939
939
.. _`sdk-manager Starting and inspecting the toolchain environment`: https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-sdk-manager/guides/sdk_manager_env_launch.html
940
940
.. _`Recovering the device`: https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-device/guides/programming_recovery.html
.. _`Programming application firmware using MCUboot serial recovery`: https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-device/guides/programming_firmware_thingy91.html
0 commit comments