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/TMS320F280049C: how to define a variable in .c file and pass to .cla to use?

Part Number: TMS320F280049C

Tool/software: Code Composer Studio

Hello experts,

1.  a static variable     "static uint16_t  myVar = 200U ;"    is defined   in "my.c" file

2. in header file  "my.h",   this variable is defined with        "extern uint16_t myVar;";

3. in .cla file  "my.cla", include header file with           " #include "my.h" 

we try to use this variable "myVar" in   "my.cla", but this does not work.

Could you please tell us what we did wrong, and help to correct the code above?  Thanks!