From: Anton S. <an...@so...> - 2009-11-01 03:55:18
|
Hello, I am trying to compile a simple test program for the PIC18F67J60 using the Ubuntu Karmic version of SDCC. The version information is: SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Aug 15 2009) (UNIX) My test program is: #include "pic18fregs.h" int main() { volatile int count = 0; while (1) ++count; } And my compilation line is: sdcc -mpic16 -p18f67j60 -Wl /usr/share/gputils/lkr/18f67j60.lkr test.c -o test_out The resulting compiler error has proved hard to diagnose: error: invalid processor type (0xb760) in "libdev18f67j60_a-pic18f67j60.o" gplink: gpprocessor.c:715: gp_processor_rom_width: Assertion `0' failed. I've looked at the libdev source for the pic18f67j60 that was installed and the header that it includes and see no mention of processor types, or the constant 0xb760. Is it likely that my install is broken? Or is there something else going on? I'm also currently working on building SDCC from source to see if that exhibits the problem. Thanks, Anton |