mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 09:46:26 +00:00
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>
8 lines
274 B
Plaintext
8 lines
274 B
Plaintext
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;
|