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.

TMS320F28P650DH: Unexpected warning from the cla compiler

Part Number: TMS320F28P650DH

Hello,
I´m writing my first code for the cla in the F28P650DH device by using the CCS Version 12.6. Now I get an unexpected warning from the cla compiler (#1173-D unknown attribute "noblocked" in f28p65x_xbar.h).

 

image.png

 

How can I prevent this warning?

Thank you very much

Ralf

  • Hi Ralf,

    Are you trying to include the f28p65x_xbar.h file in your .cla file? What seems to be happening is that this file wasn't written to be compiled for the CLA, so it is using compiler attributes that only the C28x compiler can recognize. You can either ignore this warning, remove the noblocked attribute from the source file, or update the source so that it compiles two different versions: one for the C28x and one for the CLA:

    #if defined(__TMS320C28X__)
    extern volatile struct XBAR_REGS XbarRegs __attribute__((noblocked));
    #elif defined(__TMS320C28XX_CLA__)
    extern volatile struct XBAR_REGS XbarRegs;
    #endif

    Best Regards,

    Delaney

  • Dear Delaney,
    many thanks for your answer.

    Yes, the f28p65x_xbar.h file was included from the cla compiler source code, because we need access to the ADC and EPWM registers. I have included the following files.

    #include "cla_f28p65_shared.h"
    #include "F28x_Project.h"           // this file includes the f28p65x_xbar.h
    #include "CLAmath.h"

    I come from the F28379D device, the F28379D_xbar.h does not have the attribute extension.

    Why have the f28p65x_xbar.h file this extension?

    Thank you

    Ralf

  • Hi Ralf,

    Linked here is an explanation of what the "blocked" and "noblocked" attributes do. I'm not sure why the noblocked attribute was added for this struct specifically, I am asking our software team about this and will let you know when I have an answer.

    Best Regards,

    Delaney 

  • Dear Delaney,
    I have added your suggestion in the header file and it works fine.


    Thank you

    Ralf