Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Freescale DSPs | Compilation error for DSP56F803 (spiWrite)

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Compilation error for DSP56F803 (spiWrite) - Rajarama Puranika - Aug 19 2:53:00 2003

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 __________________________________



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

Re: Compilation error for DSP56F803 (spiWrite) - Bruno Tremblay - Aug 19 17:58:00 2003

Hi,

A while ago, I had this error using the SPI port in slave mode on
a 56F803. By setting "Relaxed Pointer Type Rules" in "C/C++ Language"
of "Language Setting", I got rid of this error. Hope that will help.

Regards, Bruno

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


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

Re: Compilation error for DSP56F803 (spiWrite) - isierra95 - Aug 20 15:18:00 2003

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


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )