#pragma DATA_SECTION (".myvarloc");
uint8 measurements[30];
I have created a array of size 30 in my program as above.
MEMORY
{
MYMEMORY(rw) : ORIGIN = 0x00007800, LENGTH = 5K
}
.myvars (NOLOAD) :
{
*(. myvarloc)
} > MYMEMORY
But how to add the above code in the linker file in my IDE. I am using visual studio C++ ??