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