From: Ivan R. <iva...@gm...> - 2008-05-06 06:16:30
|
Hey there, I'm new to sdcc and to this list. I've made some code for my pic18f2550 and compiled it with my makefile. At my laboratory, we use Oshon's PIC Simulator IDE to simulate our projects. It works perfectly with our HEX that were assembled from ASM code written by hand, but it won't work with sdcc's generated ASM (and assembled with gpasm and linked with gplink). It gives me this error message: "Input program file in Intel Hex Format contains errors. Line number 1: Invalid 'checksum' field in the record." Is there a way to solve this? Any help would be much appreciated. I'll post my makefile: ========== Makefile ========== kernelbala.ihx: kernelbala.o gplink \ -c \ -s /usr/share/gputils/lkr/18f2550.lkr \ -o $@ \ -m \ -w \ $^ \ -I /usr/share/sdcc/lib/pic16 \ pic18f2550.lib libio18f2550.lib libc18f.lib kernelbala.o: kernelbala.asm gpasm -c $< kernelbala.asm: kernelbala.c sdcc -S -mpic16 -p18f2550 --pno-banksel $< ========== End ========== Thanks in advance, Ivan |