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.

Cla1Prog_Start undefined

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

I'm trying to use the CLA and have some problems with the "variable" Cla1Prog_Start. I can't define it and the compiler always output identifier "Cla1Prog_Start" is undefined. I'm using it to set he Cla1Regs.MVECT1 register.

This value is normally defined into the .cmd file:
   _Cla1Prog_Start = _Cla1funcsRunStart;

It is as well init into the main file:
   extern   Uint16 Cla1Prog_Start;

Cla1funcsRunStart is as well defined into the main file:
   extern   Uint16 Cla1funcsLoadStart;
   extern   Uint16 Cla1funcsLoadEnd;
   extern   Uint16 Cla1funcsRunStart;
and copied during the init:
   MemCopy(&Cla1funcsLoadStart, &Cla1funcsLoadEnd, &Cla1funcsRunStart);

I don't use .asm file where this label is defined. All is done with C files.

Do you have any idea why I can't init this "variable"?

Many thanks in advance for your help...

Steve

  • Hi Steve!

    At first try please to go through this thread http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/277005/969149.aspx#969149. Maybe you will find something useful.

    Regards,

    Igor 

  • Hi Igor,

    thanks for your answer... additionnally to your link, I as well tryed all what I foud about this implementation and nothing is running, always the same message...

    I as well installed CCS5.5 and the result is the same... (normally tested on CCS4.2.4)

    Any idea?

    Thanks

    Steve

  • Hi Steve!

    Could you please clarify something. If I undersatand,  you deal with F28035. What is your CLA source code? Is this some example project from controlSUITE (what is project exactly?)? Or this is your own evolution?

    Regards,

    Igor   

  • I'm working on a 28033 and made evolution of my project from examples found on the ControlSuite and TI website.

    My problem is that the compiler doesn't recognize the variable Cla1Prog_Start
    Cla1Regs.MVECT1 = (Uint16)(&Cla1Task1 - &Cla1Prog_Start)*sizeof(Uint32);

    Cla1Prog_Start si declared in my main file:
    //Linker defined vars
    extern   Uint16 Cla1Prog_Start;

    And defined in the cmd file:
    _Cla1Prog_Start = _Cla1funcsRunStart;

    What I find stange is I can make any modification into the .cmd file and it is not take in consideration (for example generating an error in the .cmd file). It may be explain why the assignement _Cla1Prog_Start = _Cla1funcsRunStart; is not considered.

    Thanks n advance for any help...

    Steve












  • Steve Gigandet said:

    What I find stange is I can make any modification into the .cmd file and it is not take in consideration (for example generating an error in the .cmd file).

    Indeed this is very strange. There is something wrong. Are you sure needed CMD is included to project? Maybe it makes sense to check carefully a content of project's directory under CCS IDE. Maybe there are two CMD are included simultaneously (accidentally) or needed CMD is OFF (gray and crossed).

    Regards,

    Igor

  • OK, it is take in consideration. The compilation stopped before analysing the cmd file...

    It meens that the command _Cla1Prog_Start = _Cla1funcsRunStart; in the cmd file is not interpreted during the compilation...

    Thanks,

    Steve

  • I found the problem, the declaration "extern   Uint16 Cla1Prog_Start;" has to be in the file where Cla1Prog_Start is used!!


    Thanks Igor...

    Steve