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.

TMS320C6748: Use a linker symbol in C code

Part Number: TMS320C6748

Hello all ! 

With CCS v5 I would like to use in my C code a symbol named "start_symbol" declared as follows in my .cmd linker file

.my_section: align = 0x4 {} > l2_ram, START(start_symbol)

I would like to use this symbol in my C code as follows :

extern int start_symbol;

int my_function()
{
    int* var = &start_symbol;
    
    memset(var, 0, size);
}

but when linking, I got the following warnings:

warning #17009-D: relocation type is static ... relocation cannot be performed

and

warning #10015-D output file xxxx cannot be loaded and run on a target system.

Could you help please ?

Moreover, is there any detailed doc about .cmd file langage ?

Sincerly.

Corentin