From 3c9932ddf818d3255a673671b7ac2de97dd64db9 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 28 Jul 2022 16:52:16 -0500 Subject: [PATCH] samples: tracing: make example in readme work Add mps2_an521.overlay so that the example in the README.txt will actually build. Update README.txt to document needing to have 'zephyr,tracing-uart' property set under chosen node in devicetree. Fixes #48416 Signed-off-by: Kumar Gala --- samples/subsys/tracing/README.txt | 3 +++ samples/subsys/tracing/boards/mps2_an521.overlay | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 samples/subsys/tracing/boards/mps2_an521.overlay 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; + }; +};