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.
Hi team,
Here's an issue from the customer may need your help:
Referenced section 6.15.4 of this doc for an introduction to variable attributes, and after using "noblocked", the compiler has an unknown attribute "noblocked" alert. The customer would like to know how to make this property recognized by the compiler(version v22.6.0.LTS)?
__attribute__((noblocked)) extern struct_type my_struct;
Could you help look into this case? Thanks.
Best Regards,
Cherry
I believe that attribute is only supported in C28x side. This is related to Data Page Pointers, which is a C28x Instructions set feature. For more details,
https://www.ti.com/lit/ug/spru514y/spru514y.pdf
Regards,
Veena
Hello Veena,
Thanks for your support and the docs.
After using this variable attribute, the linker can link correctly and eliminate the associated diagnostic alert, but a new alert: "Unknown attribute" appears.
According to spru514ydoc, this alert should not appear in normal use. The customer guesses may be it's due to the supported GCC supported or something else? How to eliminate this new alert?
Thanks and Regards,
Cherry
Hi Cherry,
Apologies for the delay.
Are you still facing the issue?
Regards,
Veena
Hi Veena,
Yes, could you help give some updates?
Thanks and regards,
Cherry
Are you using the attribute in a .cla file, or in a header file which is included in the .cla file?
As mentioned earlier, this attribute is not supported by CLA
Regards,
Veena
Hi Veena,
Are you using the attribute in a .cla file, or in a header file which is included in the .cla file?
It's in a header file which is included in the .cla file. This attribute is used to resolve alerts that occur with CLA defined variables.
If the header file contained in the CLA cannot use this attribute, does the previous alarm fail to remove?
This is the previous alert which appears in CCSV12 regarding the CLA and the customer has reviewed the section 6.15.4 of the docs then resolved it as follows:
Thanks and Regards,
Cherry
Hi,
Are these variables shared between C28x and CLA? In that case make sure they are defined in a .c file.
Regards,
Veena