From: Gene D. <da...@bl...> - 2006-07-20 20:28:59
|
That works! Thanks. Now when I compile Raphael's simple code fragment, the sfr's behave as expected. But ... when I rebuild with the below makefile, the sfr problem reappears. Any ideas? #sfraccess.mak # CHIP=4550 LIBS= pic18f$(CHIP).lib libio18f$(CHIP).lib libc18f.lib libsdcc.lib crt0i.o OFILES=sfraccess.o HEXFILE=sfraccess.hex CC=sdcc OPTS= --vc --fstack --denable-peeps --optimize-goto --optimize-cmp --optimize-df --obanksel=9 --opt-code-size --fommit-frame-pointer CFLAGS= -I. -I $(SDCC_HOME)\include\pic16 $(OPTS) -mpic16 -p18f$(CHIP) GPLINK=gplink.exe LINKER_SCRIPT= 18f$(CHIP).lkr SDCC_HOME=C:\PROGRA~1\SDCC GPLINK_FLAGS= -I. -I$(SDCC_HOME)\lib\pic16 -m -w $(LIBS) $(OFILES) -s $(LINKER_SCRIPT) all: $(HEXFILE) $(GPLINK) $(GPLINK_FLAGS) -o $(HEXFILE) clean: del *.asm del *.lst del *.o del *.cod .SUFFIXES: .c .asm .o .hex %.o: %.c $(CC) $(CFLAGS) -c $< $(HEXFILE): $(OFILES) sfraccess.o: sfraccess.c $(CC) $(CFLAGS) -c sfraccess.c # #end of sfraccess.mak -----Original Message----- From: Xiaofan Chen [mailto:xia...@gm...] Sent: Wednesday, July 19, 2006 6:08 PM To: da...@bl...; sdc...@li... Subject: Re: [Sdcc-user] PIC18F4550 - SFR access On 7/19/06, Gene Daunis <da...@bl...> wrote: > Thanks, > > I downloaded the snapshot, how do I get this version to run on a win32 > system? Is there an installer available or do I have to build it? > > Gene > I've built the gputils snapshot under Windows using MinGW. You need to download MinGW/NSis to build the installer for gputils. The author of gputils (Craig Franklin) provides a Makefile for MinGW. The file name is make-mingw. It is in the CVS. If you want, I can send you the binary. Regards, Xiaofan |