chiark / gitweb /
fixes during movpos wip
[trains.git] / pic.make
index e3639eb3bfdea99e8bee344973c4f77ebab0d754..dbd6cc8d0e1dc01f042ba515f9da79b41997876e 100644 (file)
--- a/pic.make
+++ b/pic.make
@@ -1,6 +1,6 @@
 # recommended programming order
 #   one test on PIC#0
-#      first time:                             erase, write FOO-entire0.hex
+#      first time:                             erase, write FOO+entire0.hex
 #      subsequently if only FOO.asm changed:   update FOO.hex
 #   for all pics
 #      first time:     for each individually   erase, write perpicNUM.hex
@@ -8,10 +8,16 @@
 #      subsequently:   for all                 update FOO.hex
 #   other possibilities are not ruled out
 #
+# For actual program from detpic, we program (with odyssey-train):
+#      odyssey-train <n> write program+code.hex
+# and then later
+#        write/update  program+program/code.hex
+# etc.
+#
 # filename conventions - contents of hex files
 #   FOO.hex            FOO.o (only)
 #   FOO-withcfg.hex    FOO.o                           config.o
-#   FOO-entire0.hex    FOO.o           idlocs0.o       config.o
+#   FOO+entire0.hex    FOO.o           idlocs0.o       config.o
 #   perpicNUMBER.hex                   idlocsNUMBER.o  config.o
 
 #ASFLAGS=      -Dmclock=20000 -Dsclock=20000
@@ -24,7 +30,7 @@ MERGEHEX=     ./$^ $o
 PIC=           18f458
 LINK=          gplink -m -o $@ $^
 ASSEMBLE=      gpasm -p$(PIC)  $(ASFLAGS)
-DOASSEMBLE=    $(ASSEMBLE) -c $< && mv $*.lst $*-asm.lst
+DOASSEMBLE=    $(ASSEMBLE) -c $< && mv $*.lst $*+asm.lst
 
 PIC_HEADER=    /usr/share/gputils/header/p$(PIC).inc