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.

CLA Warning

Other Parts Discussed in Thread: CONTROLSUITE

Hi, I got a warning when i build my project.

" LOAD placement ignored for "Cla1Data":  object is uninitialized"

I use ccs3.3 and the chip is F28035.

The Cla1Data in the cmd file:

Cla1Data            : LOAD = FLASHA,
                         RUN = CLA_DATARAM,
                         LOAD_START(_Cla1mathTablesLoadStart),
                         LOAD_END(_Cla1mathTablesLoadEnd),
                         RUN_START(_Cla1mathTablesRunStart),
                         PAGE = 1

and i declare in .c :

#pragma DATA_SECTION(fPeriod, "Cla1Data");
float fPeriod = 781.0;

What does this warning mean?

 

  • Hello,

    check please that these lines are presented within your main file:

    extern Uint16 Cla1mathTablesLoadStart;
    extern Uint16 Cla1mathTablesRunStart;
    extern Uint16 Cla1mathTablesLoadSize;

    void main(void)

    {

    --------------

    memcpy(&Cla1mathTablesRunStart, &Cla1mathTablesLoadStart, (Uint32)&Cla1mathTablesLoadSize);  

    and also try to apply the following CMD file: 

    ti\controlSUITE\device_support\f2803x\v127\DSP2803x_common\cmd\F28035_CLA_C.cmd

    Regards,

    Igor

  • Thanks, Igor.

     I add this line:

    extern Uint16 Cla1mathTablesLoadStart, Cla1mathTablesLoadEnd, Cla1mathTablesRunStart;

    and I use this in the main:

    MemCopy(&Cla1mathTablesLoadStart, &Cla1mathTablesLoadEnd, &Cla1mathTablesRunStart);

    I think it is the same as memcpy().

    My cla program use this:

    MemCopy(&Cla1funcsLoadStart, &Cla1funcsLoadEnd, &Cla1funcsRunStart); and it work well.

     

     

  • I try to use the CMD file:

    ti\controlSUITE\device_support\f2803x\v127\DSP2803x_common\cmd\F28035_CLA_C.cmd

    and it still show up the warning.

  • Hi Edwin,

    I'm sorry for F28035_CLA_C.cmd, because it is not enough (one should to create new section within this file, of course). Refer please to that AR 3480.TI_Running_from_Flash_spra958l.pdf (chapter 4.6.2 p.19-20). I hope this will help.

    Regards,

    Igor

  • The warning also show up in the example project:

    controlSUITE\device_support\f2803x\v127\DSP2803x_examples_cla_ccsv5\asin

    warning #10083-D:
    LOAD placement ignored for "GROUP_3": object is uninitialized

  • Yes, Edwin,

    I have got the same result with this example...I will try to search where is problem...

    Regards,

    Igor

  • I'll recommend using a different name for this section:

    CLA1mathTables : LOAD = FLASHB, /* Note for running from RAM the load and RUN can be the same */
    RUN = CLARAM1,
    LOAD_START(_Cla1mathTablesLoadStart),
    LOAD_END(_Cla1mathTablesLoadEnd),
    LOAD_SIZE(_Cla1mathTablesLoadSize),
    RUN_START(_Cla1mathTablesRunStart),
    PAGE = 1

    Cla1Data may be a reserved keyword following the CLA C compiler, which uses this default section for placing the uninitialized objects,

    irrespective whether you are using the CLA C compiler the error may come if you are using a code gen that supports CLA C compiler..