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.

TMS Compiler v4.9.2

I am using TMS Compiler v4.9.2  for TMS 570 device .

In one file i have function declared as 

void func(U32 const *const data);

and in the function call am passing a different data type "sum" and typecasting it to U32 *

func( (U32 *) &sum);

When i tried to compile the above line of code i get compilation error as follows

line 209: error #169-D: argument of type "U32 *" is incompatible with parameter of type "const U32*const"

I compiled the same code on a different compiler (also the micro controller is different and not TI one) it compiles ? May i know which one is correct here ?