Hi, I am using #PRAGMA DATA_SECTION() to label a memory section for an array in my source code. In the linker script I assign this section to a specific memory region. I see the section in my .map file. I would like in my source code to set pointers to the start and end of this section. I have done something similar using the __text__ and __etext__ symbols to point to the start and end of the .text section. I cannot figure out how to assign a label to the end of the section I have defined using #PRAGMA DATA_SECTION(). I was able to label the start address but have not figured out how to label the end address.
In .cpp file:
#pragma DATA_SECTION (".TEST_BUFFER");
static uint32_t TestBuffer[MAX_TEST_WORDS];
In .cmd file:
.TEST_BUFFER > IRAM
{
_start_of_test_buffer = .;
}