Skip to content

Commit 38c79a4

Browse files
MaureenHelmcarlescufi
authored andcommitted
rtt: systemview: Add 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 <[email protected]>
1 parent 874d9e9 commit 38c79a4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

rtt/SEGGER_RTT_Conf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ Revision: $Rev: 13430 $
9191

9292
#define USE_RTT_ASM (0) // Use assembler version of SEGGER_RTT.c when 1
9393

94+
#if defined(CONFIG_SEGGER_RTT_SECTION_DTCM)
95+
#define SEGGER_RTT_SECTION ".dtcm_data"
96+
#endif
97+
9498
/*********************************************************************
9599
*
96100
* RTT memcpy configuration

systemview/SEGGER_SYSVIEW_Conf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ uint32_t sysview_get_interrupt(void);
1212
#define SEGGER_SYSVIEW_RTT_BUFFER_SIZE CONFIG_SEGGER_SYSVIEW_RTT_BUFFER_SIZE
1313
#define SEGGER_SYSVIEW_POST_MORTEM_MODE CONFIG_SEGGER_SYSVIEW_POST_MORTEM_MODE
1414

15+
#if defined(CONFIG_SEGGER_SYSVIEW_SECTION_DTCM)
16+
#define SEGGER_SYSVIEW_SECTION ".dtcm_data"
17+
#endif
18+
1519
// Lock SystemView (nestable)
1620
#define SEGGER_SYSVIEW_LOCK() { \
1721
unsigned int __sysview_irq_key = \

0 commit comments

Comments
 (0)