From: Raphael N. <rn...@we...> - 2008-10-20 12:58:51
|
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 |