RE: want an sdcc howto?
Chen Xiao Fan <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <3B8AEFFADD3DD4118F8100508BACEC2C07F7737F@spex> |
I am not using the Ubuntu package of SDCC and GPUtils. I just tried to do it again and follow exactly the document in the following link (CVS version of SDCC and GPUTILS. http://ubicomp.lancs.ac.uk/~martyn/sdcc_linux The installation is okay. Actually I tried Cygwin as well. The compilation of all the example C file failed. The following is the error message of the compiling. It seems to me a configutation problem. The error messaga in Cygwin is similar. System: Ubuntu 5.04 Linux SDCC: latest CVS GPUtils: latest CVS Regards, Xiaofan *************************************************** mcuee@ubuntu:~$ sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.5.1 #1059 (Jul 16 2005) (UNIX) mcuee@ubuntu:~$ gpasm -v gpasm-0.13.2 beta mcuee@ubuntu:~/Desktop/sdcc$ which sdcc /usr/local/bin/sdcc mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic14 -p16f84 test.c Processor: 16f84 C_pic14 -D__pic14 -I/usr/local/bin/../share/sdcc/include/pic14 -I/usr/local/share/sdcc/include/pic14 -I/usr/local/bin/../share/sdcc/include -I/usr/local/share/sdcc/include test.c .o: No such file or directory mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 wave.c Processor: 18f252 wave.c:25:1: warning: "__18f252" redefined <command line>:1:1: warning: this is the location of the previous definition wave.c:23: warning: setting stack to default size 64 (0x0040) wave.c:23: warning: stack [0x5FF,0x63E] crosses memory bank boundaries (not fully tested) wave.c:23: error: stack [0x5FF,0x63E] is placed outside available memory [0x000,0x5FF]! mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 serial.c Processor: 18f252 serial.c:9: warning: setting stack to default size 64 (0x0040) warning: processor mismatch in "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o" message: using default linker script "/usr/local/share/gputils/lkr/18f252.lkr" gplink: gpcofflink.c:203: gp_cofflink_clean_table: Assertion `sym != ((void *)0)' failed. mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 printf.c Processor: 18f252 printf.c:9: warning: setting stack to default size 64 (0x0040) warning: processor mismatch in "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o" message: using default linker script "/usr/local/share/gputils/lkr/18f252.lkr" warning: processor mismatch in "printf_tiny.o" warning: processor mismatch in "ltoa.o" warning: processor mismatch in "islower.o" warning: processor mismatch in "modulong.o" warning: processor mismatch in "gptrget1.o" warning: processor mismatch in "gptrget2.o" warning: processor mismatch in "gptrget3.o" warning: processor mismatch in "gptrget4.o" warning: processor mismatch in "divulong.o" gplink: gpcofflink.c:203: gp_cofflink_clean_table: Assertion `sym != ((void *)0)' failed. ------------------ The Ubuntu package may well be different from the Debian one. Where did you report your problems with the Ubuntu compiler ? Ian.