Skip to content

Commit fd14acd

Browse files
committed
debug: tracing: cmake linker gen for .rtt_buff_data
Add CMake linker generator equialents to what segger_rtt.ld does for rtt_buff_data Signed-off-by: Björn Bergman <bjorn.bergman@iar.com>
1 parent ed62335 commit fd14acd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/segger/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if(CONFIG_USE_SEGGER_RTT)
1313
zephyr_library_sources_ifdef(CONFIG_SEGGER_SYSTEMVIEW ${SEGGER_DIR}/SEGGER/SEGGER_SYSVIEW.c)
1414
# Using sort key AAA to ensure that we are placed at start of RAM
1515
zephyr_linker_sources_ifdef(CONFIG_SEGGER_RTT_SECTION_CUSTOM RAM_SECTIONS SORT_KEY aaa segger_rtt.ld)
16+
17+
zephyr_linker_section_ifdef(CONFIG_SEGGER_RTT_SECTION_CUSTOM NAME "rtt_buff_data" GROUP RAM_REGION ALIGN 4 NOINPUT)
18+
zephyr_linker_section_configure(SECTION "rtt_buff_data" INPUT "${CONFIG_SEGGER_RTT_SECTION_CUSTOM_NAME}" SYMBOLS )
1619
endif()
1720

1821
if(CONFIG_SEGGER_DEBUGMON)

modules/segger/segger_rtt.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//Remember to keep this in sync with the cmake file
12
SECTION_DATA_PROLOGUE(_RTT_SECTION_NAME,(NOLOAD),)
23
{
34
__rtt_buff_data_start = .;

0 commit comments

Comments
 (0)