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.

TMS320F280049C: 280049 CLA Compile warn

Part Number: TMS320F280049C

how can i solve this warning? thank you 

  • Add a new line code as below. Hope it helps.

    #pragma diag_suppress=770

    Cla1Regs.MVECT1 = (uint16_t)&Cla1Task1;

    ...

    ...

  • Hi, 

    For some reason, I am not able to reproduce this warning. Could be because of different compiler version or compiler flags used.

    This is not an issue while assigning CLA tasks. The error is generated because there is a conversion of a pointer (usually 32-bit) to a 16-bit integer. The CLA address range is 16 bits and the these functions are always allocated in LSRAMs which is within 16-bit boundary.

    You can suppress this error by adding the pragma diag_suppress and re-enable it using diag_warning pragma

    #pragma diag_suppress=770
    Cla1Regs.MVECT1 = (uint16_t)(&Cla1Task1);
    Cla1Regs.MVECT2 = (uint16_t)(&Cla1Task2);
    Cla1Regs.MVECT3 = (uint16_t)(&Cla1Task3);
    Cla1Regs.MVECT4 = (uint16_t)(&Cla1Task4);
    Cla1Regs.MVECT5 = (uint16_t)(&Cla1Task5);
    Cla1Regs.MVECT6 = (uint16_t)(&Cla1Task6);
    Cla1Regs.MVECT7 = (uint16_t)(&Cla1Task7);
    Cla1Regs.MVECT8 = (uint16_t)(&Cla1Task8);
    #pragma diag_warning=770
    Regards,
    Veena