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



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?
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.