gnupic: Re: [gnupic] MCHPFSUSB AN950, AN956, ...
Subject:
Re: [gnupic] MCHPFSUSB AN950, AN956, ...
From:
Xiaofan Chen ####@####.####
Date:
2 Feb 2006 12:34:13 +0000
Message-Id: <a276da400602020434n1da7d411q810f793cdc13b4a4@mail.gmail.com>
On 2/2/06, Chen Xiao Fan ####@####.#### wrote:
> You need to change main.c and stdp.c so that it will build
> with later version of sdcc. Attached please find the updated
> C files. You may need to change the Makefile as well.
Here is the Makefile under linux. It should work for Windows as well but
I have not tested that.
CC=sdcc
CFLAGS=-mpic16 -p18f2550 --ivt-loc=0x2000 --use-crt=crt0iz.o
#LDFLAGS=-p18f2550 -Wl"-s18f2550.lkr" libio18f2550.lib
PROJ=main.hex
OBJ=usb.o main.o comms.o vpp.o stdp.o
LIB = pic18f2550.lib libsdcc.lib
all: $(PROJ)
$(PROJ): $(OBJ)
gplink -s 18f2550.lkr -I/usr/local/share/sdcc/lib/pic16 -o $@
crt0iz.o $(LIB) $(OBJ)
#%.o: %.c
# $(CC) $(CCFLAGS) -c $< -o $@
clean:
$(RM) *.asm *.cod *.hex *.lst *.o
install: all
sed 's/^:040000/:042000/' main.hex > main2.hex
# ~/project/pickit2/src/pk2_bootload main2.hex
# smbclient '\\radio\Share Area' -D pic/usb -N -c 'prompt; mput *'
Regards,
Xiaofan