Hi Vaclav,

> I already wrote to Microchip forum but the problem can be in SDCC as well.
> The problem is that when I use "built-in SPI" read, I always get 0x00. But
> with "manual SPI" I get correct result.
> 
> I started to fight with the communication between PIC18f2580 and CC1100 in
> SDCC version 2008-Sep-10 ( I compile with sdcc -V -mpic16 -p18f2580 main.c )
> 
> I use internal 8MHz oscillator and have configured SPI following way:

Before we dig any deeper: did you disable the extended instruction set using
something like
__code char __at(__CONFIG4L) conf4l = _XINST_OFF_4L;

Please try this and report if this solved your problem.

(... I need to find a way to disable this by default ...)

Regards,
Raphael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to