File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed
samples/boards/nordic/coresight_stm
snippets/nordic/nordic-log-stm-tpiu-dict Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ tests:
22
22
- SB_CONFIG_APP_CPUPPR_RUN=y
23
23
- SB_CONFIG_APP_CPUFLPR_RUN=y
24
24
25
+ sample.boards.nrf.coresight_stm.tpiu.dict :
26
+ required_snippets :
27
+ - nordic-log-stm-tpiu-dict
28
+ extra_args :
29
+ - SB_CONFIG_APP_CPUPPR_RUN=y
30
+ - SB_CONFIG_APP_CPUFLPR_RUN=y
31
+
25
32
sample.boards.nrf.coresight_stm :
26
33
harness : pytest
27
34
harness_config :
Original file line number Diff line number Diff line change
1
+ .. _nordic-log-stm-tpiu-dict :
2
+
3
+ Nordic Dictionary-based STM to TPIU logging snippet (nordic-log-stm-tpiu-dict)
4
+ ##############################################################################
5
+
6
+ Overview
7
+ ********
8
+
9
+ This snippet allows users to build Zephyr with the dictionary-based logging to
10
+ the Coresight STM stimulus ports. Data is written to the TPIU interface and can
11
+ be captured with nrfutil trace to translate into a human-readable format.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Nordic Semiconductor
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ &coresight {
7
+ status = "okay";
8
+ mode = "stm-tpiu";
9
+ pinctrl-0 = <&tpiu_default>;
10
+ pinctrl-names = "default";
11
+ };
Original file line number Diff line number Diff line change
1
+ CONFIG_LOG=y
2
+ CONFIG_TEST_LOGGING_DEFAULTS=n
3
+ CONFIG_LOG_FRONTEND=y
4
+ CONFIG_LOG_FRONTEND_ONLY=y
5
+ CONFIG_LOG_FRONTEND_STMESP=y
6
+ CONFIG_DEBUG_DRIVER=y
Original file line number Diff line number Diff line change
1
+ name : nordic-log-stm-tpiu-dict
2
+ append :
3
+ EXTRA_CONF_FILE : log_stm_dict.conf
4
+ boards :
5
+ /.*/nrf54h20/cpuapp/ :
6
+ append :
7
+ EXTRA_DTC_OVERLAY_FILE : boards/nrf54h20_cpuapp.overlay
You can’t perform that action at this time.
0 commit comments