forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: tracing: Add Segger RTT linker section options
Allows optionally placing Segger RTT data either in a specific linker section that is located at RAM start, or in a specific linker section defined by a memory region in DTS, as third and fourth alternative to the DTCM section or the default data section. This is useful to share the fixed address for different programs, typically bootloader and application, and have seamless logging. Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
- Loading branch information
1 parent
5107320
commit 711ed08
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SECTION_DATA_PROLOGUE(_RTT_SECTION_NAME,(NOLOAD),) | ||
{ | ||
__rtt_buff_data_start = .; | ||
*(CONFIG_SEGGER_RTT_SECTION_CUSTOM_NAME) | ||
__rtt_buff_data_end = ALIGN(4); | ||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION) | ||
__rtt_buff_data_size = __rtt_buff_data_end - __rtt_buff_data_start; |