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
Snippet enables modem tracing, the flash backend, and external flash and configures them to store modem traces to a dedicated partition on the external flash for supported boards.
34
+
The ``nrf91-modem-trace-ext-flash`` snippet enables modem tracing, the flash backend, and external flash and configures them to store modem traces to a dedicated partition on the external flash for supported boards.
24
35
To change the partition size, the project needs to configure the :kconfig:option:`CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_FLASH_PARTITION_SIZE` Kconfig option.
25
36
26
-
The following board targets have support for this snippet:
27
-
28
-
* ``nrf9151dk/nrf9151/ns``
29
-
* ``nrf9161dk/nrf9161/ns``
30
-
* ``nrf9160dk/nrf9160/ns``
31
-
* ``nrf9131ek/nrf9131/ns``
32
-
33
-
To enable modem traces with the flash backend, use the following command, where *board_target* corresponds to your development kit board target and `<image_name>` to your application image name:
37
+
To enable modem traces with the flash backend, use the following command pattern, where *board_target* corresponds to your board target and `<image_name>` to your application image name:
34
38
35
39
.. parsed-literal::
36
40
:class: highlight
@@ -42,46 +46,50 @@ To enable modem traces with the flash backend, use the following command, where
42
46
nRF91 modem tracing with UART backend using snippets
Snippet enables the :kconfig:option:`CONFIG_NRF_MODEM_LIB_TRACE` Kconfig option and chooses the Zephyr UART driver for the backend, with the necessary Kconfig options.
49
+
The ``nrf91-modem-trace-uart`` snippet enables the :kconfig:option:`CONFIG_NRF_MODEM_LIB_TRACE` Kconfig option and chooses the Zephyr UART driver for the backend, with the necessary Kconfig options.
46
50
The snippet also enables the UART1 peripheral with a baud rate of 1 Mbd and hardware flow control enabled.
47
51
If this configuration does not match your requirements, you can add a snippet or Kconfig and devicetree overlays to your application with the desired setup.
52
+
53
+
.. note::
54
+
If you are using the nRF9160 DK, remember to :ref:`set the board controller switch to the **nRF91** position <build_pgm_nrf9160_board_controller>` before programming.
55
+
48
56
To enable modem tracing with the UART trace backend on a nRF91 device, add the ``nrf91-modem-trace-uart`` snippet to the :term:`build configuration`.
49
57
This can be done in one of the following ways:
50
58
51
-
With west
52
-
=========
59
+
.. tabs::
53
60
54
-
To add the modem trace UART snippet when building an application with west, use the following command, where *board_target* corresponds to your development kit board target and `<image_name>` to your application image name:
61
+
.. group-tab:: west
55
62
56
-
.. parsed-literal::
57
-
:class: highlight
63
+
To add the modem trace UART snippet when building an application with west, use the following command pattern, where *board_target* corresponds to your board target and `<image_name>` to your application image name:
58
64
59
-
west build --board *board_target* -- -D<image_name>_SNIPPET="nrf91-modem-trace-uart"
65
+
.. parsed-literal::
66
+
:class: highlight
60
67
61
-
.. note::
62
-
With :ref:`sysbuild <configuration_system_overview_sysbuild>`, using the ``west build -S`` option applies the snippet to all images.
63
-
Therefore, use the CMake argument instead, specifying the application image.
68
+
west build --board *board_target* -- -D<image_name>_SNIPPET="nrf91-modem-trace-uart"
69
+
70
+
.. note::
71
+
With :ref:`sysbuild <configuration_system_overview_sysbuild>`, using the ``west build -S`` option applies the snippet to all images.
72
+
Therefore, use the CMake argument instead, specifying the application image.
64
73
65
-
With CMake
66
-
==========
74
+
.. group-tab:: CMake
67
75
68
-
To add the modem trace UART snippet when building an application with CMake, add the following command to the CMake arguments:
76
+
To add the modem trace UART snippet when building an application with CMake, add the following command to the CMake arguments:
To build with the |nRFVSC|, specify ``-D<image_name>_SNIPPET="nrf91-modem-trace-uart" [...]`` in the **Extra CMake arguments** field.
82
+
To build with the |nRFVSC|, specify ``-D<image_name>_SNIPPET="nrf91-modem-trace-uart" [...]`` in the **Extra CMake arguments** field.
75
83
76
-
See :ref:`cmake_options` for more details.
84
+
See :ref:`cmake_options` for more details.
77
85
78
86
.. _tfm_enable_share_uart:
79
87
80
88
Shared UART for application and TF-M logging
81
89
********************************************
82
90
83
91
If you want to activate TF-M logging while having modem traces enabled, it can be useful to direct the TF-M logs to the UART (**UART0**) used by the application.
84
-
To activate both modem traces and TF-M logs, use the following command:
92
+
To activate both modem traces and TF-M logs, use the following command pattern, where *board_target* corresponds to your board target:
0 commit comments