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.
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?
Hello!
You can refer to chapter "Interfacing C and C++ With Assembly Language" of UG 4137.ARM_spnu151i.pdf (chapter 6.5) or 3364.TI_TMS320C28x Optimizing C_spru514f.pdf (chapter 7.4) .
Regards,
Igor
The error "[E0000] parse error" means you have made a mistake in the syntax of the file. Please show us the exact text of the error message, as well as the exact text of the line it indicates contains the error. Please cut-and-paste it; do not re-type it in the forum.
as follows the CCS error report
"../my_asm.asm", ERROR! at line 23: [E0000] parse error
.global _my_var1
1 Assembly Error