Skip to content

Commit 02fb6fa

Browse files
karstenkoenigkartben
authored andcommitted
snippets: nordic-log-stm: Updated for coresight
Replaced the old tddconf with the full coresight driver that configures the coresight peripherals locally on the running core. Also fixed minor bug in the corresponding sample where messages were not shown for the radio core. Signed-off-by: Karsten Koenig <[email protected]>
1 parent 6066a42 commit 02fb6fa

File tree

9 files changed

+7
-34
lines changed

9 files changed

+7
-34
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_LOG=y
2+
CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y

snippets/nordic/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
status = "okay";
88
};
99

10-
&tddconf {
10+
&coresight {
1111
status = "okay";
12-
etrsources = <(NRF_TDDCONF_SOURCE_STMMAINCORE | NRF_TDDCONF_SOURCE_STMPPR |
13-
NRF_TDDCONF_SOURCE_STMFLPR)>;
14-
portconfig = <0>;
15-
etrbuffer = <&etr_buffer>;
12+
mode = "stm-etr";
1613
};

snippets/nordic/nordic-log-stm-dict/boards/nrf54h20_cpurad.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

snippets/nordic/nordic-log-stm-dict/log_stm_dict.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CONFIG_TEST_LOGGING_DEFAULTS=n
33
CONFIG_LOG_FRONTEND=y
44
CONFIG_LOG_FRONTEND_ONLY=y
55
CONFIG_LOG_FRONTEND_STMESP=y
6+
CONFIG_DEBUG_DRIVER=y

snippets/nordic/nordic-log-stm-dict/snippet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ boards:
55
/.*/nrf54h20/cpuapp/:
66
append:
77
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpuapp.overlay
8-
/.*/nrf54h20/cpurad/:
9-
append:
10-
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpurad.overlay

snippets/nordic/nordic-log-stm/boards/nrf54h20_cpuapp.overlay

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
status = "okay";
88
};
99

10-
&tddconf {
10+
&coresight {
1111
status = "okay";
12-
etrsources = <(NRF_TDDCONF_SOURCE_STMMAINCORE | NRF_TDDCONF_SOURCE_STMPPR |
13-
NRF_TDDCONF_SOURCE_STMFLPR)>;
14-
portconfig = <0>;
15-
etrbuffer = <&etr_buffer>;
12+
mode = "stm-etr";
1613
};

snippets/nordic/nordic-log-stm/boards/nrf54h20_cpurad.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.

snippets/nordic/nordic-log-stm/log_stm.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CONFIG_LOG_FRONTEND=y
44
CONFIG_LOG_FRONTEND_ONLY=y
55
CONFIG_LOG_FRONTEND_STMESP=y
66
CONFIG_LOG_FRONTEND_STMESP_FSC=y
7+
CONFIG_DEBUG_DRIVER=y

snippets/nordic/nordic-log-stm/snippet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ boards:
55
/.*/nrf54h20/cpuapp/:
66
append:
77
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpuapp.overlay
8-
/.*/nrf54h20/cpurad/:
9-
append:
10-
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpurad.overlay

0 commit comments

Comments
 (0)