This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430FR5969: Get start address and size of custom memory section

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

Hi,

Is it possible to get the start address and size (or end address) of a custom memory section?

For example, I define some variables in a custom area ".myarea"

#pragma DATA_SECTION(my_var, ".myarea")

volatile unsigned char my_var[10];

Then I place this region in FRAM in the linker file:

.myarea : type = NOINIT{} > FRAM

Note that I don't want to define a pre-defined area with a fixed size in the linker file. I want this region to be placed in FRAM and grow organically.

Is it possible to read the start address and size of ".myarea" in my application code to do something like a memcpy?

Regards,

Luis R