Rajarama, To get rid of this error you need to enable 'Relaxed Pointer Type Rules' that is a setting under C/C++ Language Settings of your Targeting Settings inside of CodeWarrior. When you select this option, the compiler treats char* and unsigned char* as the same type. While prototypes are checked for compatiable pointer types, direct pointer assignments are allowed. Regards, Irene --- In , Rajarama Puranika <rpuranika@y...> wrote: > Hi All, > I am using Motorola SDK 3.0 version and CodeWarrior > 5.1 version . In my project(for DSP56F803) if I > include spi.h file (SpI libraries), > during compilation it is giving error as follows: > > cannot convert > 'unsigned int(*) (int, unsigned short * ,unsigned > int) > to > 'unsigned int(*) (int ,const void *,unsigned int)' > File name const.c line 2535 spiWrite_ > This is the error we are getting only for DSP56F803, > spiWrite function.And rest works fine. > > In this case we guess there is mismatch in > library fuctions parameters. > > And also we have tried for DSP56F807 and DSP56F805 > using uCos , it is working fine . > Can anyone please suggest on this issue quickly. > > Thanks, > With Regards, > Rajarama > __________________________________ > |