gnupic: Re: [gnupic] Adding a DATE macro to gpsim


Previous by date: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Next by date: 19 Apr 2005 13:49:37 +0100 MPLAB ICD2, Iain Dooley
Previous in thread: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Next in thread: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion

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/

Previous by date: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Next by date: 19 Apr 2005 13:49:37 +0100 MPLAB ICD2, Iain Dooley
Previous in thread: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion
Next in thread: 19 Apr 2005 13:49:37 +0100 Re: [gnupic] Adding a DATE macro to gpsim, Peter Onion


Powered by ezmlm-browse 0.20.