diff --git a/samples/subsys/tracing/README.txt b/samples/subsys/tracing/README.txt index 7e5374604f8..ef7e8d8ddae 100644 --- a/samples/subsys/tracing/README.txt +++ b/samples/subsys/tracing/README.txt @@ -18,6 +18,9 @@ or: cmake -DBOARD=mps2_an521 -DCONF_FILE=prj_uart_ctf.conf .. +NOTE: You may need to set 'zephyr,tracing-uart' property under the chosen +node in your devicetree. See boards/mps2_an521.overlay for an example. + After the application has run for a while, check the trace output file. -------------------------------------------------------------------------------- diff --git a/samples/subsys/tracing/boards/mps2_an521.overlay b/samples/subsys/tracing/boards/mps2_an521.overlay new file mode 100644 index 00000000000..b241804571e --- /dev/null +++ b/samples/subsys/tracing/boards/mps2_an521.overlay @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +/ { + chosen { + zephyr,tracing-uart = &uart1; + }; +};