From 57b756b4427f34274d2189b307243d1b58267feb Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Mon, 2 Nov 2020 16:53:52 -0600 Subject: [PATCH] debug: tracing: Add Segger RTT and SystemView linker section options Enables optionally placing Segger RTT and SystemView data in the DTCM linker section instead of the default data section. This is needed on SoCs in the i.MX RT series that use cacheable external SDRAM to store data. Signed-off-by: Maureen Helm --- drivers/debug/Kconfig.rtt | 11 +++++++++++ subsys/tracing/sysview/Kconfig | 11 +++++++++++ west.yml | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/debug/Kconfig.rtt b/drivers/debug/Kconfig.rtt index a0d38f86e92..6a506d30f72 100644 --- a/drivers/debug/Kconfig.rtt +++ b/drivers/debug/Kconfig.rtt @@ -60,4 +60,15 @@ config SEGGER_RTT_MODE config SEGGER_RTT_MEMCPY_USE_BYTELOOP bool "Use a simple byte-loop instead of standard memcpy" +choice SEGGER_RTT_SECTION + prompt "Choose RTT data linker section" + +config SEGGER_RTT_SECTION_NONE + bool "Place RTT data in the default linker section" + +config SEGGER_RTT_SECTION_DTCM + bool "Place RTT data in the DTCM linker section" + +endchoice + endif diff --git a/subsys/tracing/sysview/Kconfig b/subsys/tracing/sysview/Kconfig index f4cef18caca..49c738d2ccb 100644 --- a/subsys/tracing/sysview/Kconfig +++ b/subsys/tracing/sysview/Kconfig @@ -16,4 +16,15 @@ config SEGGER_SYSVIEW_POST_MORTEM_MODE bool "Enable post-mortem mode for SystemView" depends on SEGGER_SYSTEMVIEW +choice SEGGER_SYSVIEW_SECTION + prompt "Choose SystemView data linker section" + +config SEGGER_SYSVIEW_SECTION_NONE + bool "Place SystemView data in the default linker section" + +config SEGGER_SYSVIEW_SECTION_DTCM + bool "Place SystemView data in the DTCM linker section" + +endchoice + endif diff --git a/west.yml b/west.yml index d43a1c8ae20..60014c7bc68 100644 --- a/west.yml +++ b/west.yml @@ -114,7 +114,7 @@ manifest: revision: f9fbfad0119d7b0d473eaac50c2f0a0a483c2823 path: modules/lib/openthread - name: segger - revision: 874d9e9696b00c09f9eeefe839028dc25fe44983 + revision: 38c79a447e4a47d413b4e8d34448316a5cece77c path: modules/debug/segger - name: tinycbor path: modules/lib/tinycbor