TMS320F280039C: #3205 for variable "test", CLA does not support the update attribute.

Part Number: TMS320F280039C

When adding new variables in CLA files, compilation errors occur. The compiler version used is 22.6.2.LTS.

image.pngimage.pngimage.png

  • Hi Yuan,

    The CLA does not support the __attribute__((update)) directive, so the compiler's __TI_auto_init_warm() routine will not automatically re-initialize CLA variables during a LFU startup. Additionally, the CLA does not support initialization of global variables through the standard LFU mechanism. 

    Is this test variable intended to be in CLA/CPU shared memory or just accessible via the CLA?

    Best Regards,
    Delaney

  • just accessible via the CLA,

    So If I need to add a new variable in the CLA, does that mean I don't need to add the 'update' attribute and can simply define it directly? like this?

    static f32 test = 0;

  • Hi Yuan,

    Let me loop in the LFU expert to comment. Note that assuming the "test" variable is a global variable, you still can't initialize the value like that. It would have to be static f32 test;.

    Best Regards,

    Delaney

  • Yes, you don't need to add the update attribute, and Delaney is correct, the variable initialization has to be inside user code.