gnupic: Re: [gnupic] Adding a DATE macro to gpsim
Subject:
Re: [gnupic] Adding a DATE macro to gpsim
From:
Anthony Tekatch ####@####.####
Date:
19 Apr 2005 13:49:37 +0100
Message-Id: <20050419084957.75141fae@pino>
On Tue, 19 Apr 2005 09:35:48 +0100, Peter Onion ####@####.#### wrote:
> I prefere the "modify gpasm" approach because I don't need the
> complexity of make to build my PIC code.
make is actually quite simple. I love it, especially since I may not be
working on a project for a year, when I come back to it and edit my
source, I just have to type make.
As an example of simplicity, here is one of my latest make files that
creates a model and serial number file, reports words used, writes to
("w") or reads from ("r") the PIC.
==========================================================
NAME=darksky
PROCESSOR=16F819
MODELSERFILE=modelser.asm
all:
gpasm $(NAME).asm
@echo " DATA32 " $(MODEL) > $(MODELSERFILE)
@echo " DATA32 " $(SERIAL) >> $(MODELSERFILE)
@cat $(NAME).lst | grep "Program Memory Words Used"
w: all
@echo
picp /dev/picstart $(PROCESSOR) -ef
@echo "Programming, please wait..."
picp /dev/picstart $(PROCESSOR) -wp $(NAME).hex
picp /dev/picstart $(PROCESSOR) -rc
@echo "Finished programming chip."
@echo
r:
picp /dev/picstart $(PROCESSOR) -rp | more
==========================================================
Cheers,
Anthony
http://www.unihedron.com/