From b2b38903a7e02f9451af4352730592541c8de9be Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Fri, 2 Jul 2021 15:32:18 -0500 Subject: [PATCH] soc: arm: nxp_imx: Link Segger RTT/SystemView sections in DTCM if chosen Configures Segger RTT and SystemView data linker sections to DTCM by default on i.MX RT SoCs if there is a zephyr,dtcm chosen node in devicetree. This fixes a build warning in samples/subsys/shell/shell_module for the mimxrt1170_evk_cm7 and mimxrt1170_evk_cm4 platforms, which don't currently have a zephyr,dtcm chosen node. Note that there are runtime issues with Segger RTT and SystemView on this board that need further debug, but submitting this patch now to address nightly CI failures. Signed-off-by: Maureen Helm --- soc/arm/nxp_imx/rt/Kconfig.defconfig.series | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series index 6caea791b76..bb3aaa4caee 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series +++ b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series @@ -136,13 +136,15 @@ config DMA_MCUX_EDMA default y if HAS_MCUX_EDMA depends on DMA +DT_CHOSEN_Z_DTCM := zephyr,dtcm + choice SEGGER_RTT_SECTION - default SEGGER_RTT_SECTION_DTCM if HAS_MCUX_SEMC + default SEGGER_RTT_SECTION_DTCM if $(dt_chosen_enabled,$(DT_CHOSEN_Z_DTCM)) depends on USE_SEGGER_RTT endchoice choice SEGGER_SYSVIEW_SECTION - default SEGGER_SYSVIEW_SECTION_DTCM if HAS_MCUX_SEMC + default SEGGER_SYSVIEW_SECTION_DTCM if $(dt_chosen_enabled,$(DT_CHOSEN_Z_DTCM)) depends on SEGGER_SYSTEMVIEW endchoice