Skip to content

Commit f30dec4

Browse files
CarlErikssonSkoghfabiobaltieri
authored andcommitted
cmake: segger: linker_script: handle section rtt_buff_data
The segger cmake linker script is out of date compared to segger_rtt.ld. This is causing linker failures with IAR when segger is enabled (on nrf hardware for example). Signed-off-by: Carl Eriksson Skogh <[email protected]>
1 parent 59850f1 commit f30dec4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/segger/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ 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+
zephyr_linker_section_ifdef(CONFIG_SEGGER_RTT_SECTION_CUSTOM NAME "rtt_buff_data" GROUP RAM_REGION ALIGN 4 NOINPUT)
17+
zephyr_linker_section_configure(SECTION "rtt_buff_data" INPUT "${CONFIG_SEGGER_RTT_SECTION_CUSTOM_NAME}" SYMBOLS )
1618
endif()
1719

1820
if(CONFIG_SEGGER_DEBUGMON)

0 commit comments

Comments
 (0)