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.

Interfacing c and asm global variables

Hi,

I’m using code composer studio 5.4 for DSP C54x.

I want to interface a C code with an asm routines (algebric), as follows my problem:

I have a defined variable in my file my_asm.asm like that:

My_var1             .set        0

My_var2             .set        1

…etc

So want to transfer these variables to my c file main.c :

#define My_var1            0

#define My_var2            1

Or like that:

Extern unsigned int My_var1;

My_var1=0;

…etc

Actually when I added:

  .global   My_var1  in asm file and

Extern unsigned int My_var1; in c file

ð  I have this error [E0000] parse error

There other ways?