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.

Compiler/AWR1642: Define specific placement address for a struct within C code and linker command file

Part Number: AWR1642

Tool/software: TI C/C++ Compiler

Dear Experts,

could You please let me know the steps to define a specific origin address for one particular struct in a C file only using TI ARM compiler for Cortex R4F?

For example, I would like below struct to be placed at 0x0C20_0000 address:

typedef struct sSampleStruct_t
{
     uint8_t Data1;
     int32_t Data2;
     uint16_t Data3;
     uint8_t Data4;
}sSampleStruct;

What are the necessary steps in C code (e.g. pragmas) and linker command file (e.g. memory, section definitions)?

Many thanks and best regards,

RogerG