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.

CCS/RM46L852: Incorrect MISRA C warning?

Part Number: RM46L852

Tool/software: Code Composer Studio

Hello,

I have enabled MISRA C checking in CCS 7.1 and am having problems with the following code:

uint16_t ctTest = 0U;

uint16_t *ptrTest;

...

ptrTest = &ctTest;

The last line gives the following MISRA warning:

#1393-D (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if the expression is complex.

Is anyone able to explain what is wrong with this line or if it is a bug in CCS?