gnupic: Re: [gnupic] RE: [PIC] gputils-mplab


Previous by date: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Next by date: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Previous in thread: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Next in thread: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin

Subject: RE: [gnupic] RE: [PIC] gputils-mplab
From: Chen Xiao Fan ####@####.####
Date: 29 Sep 2005 03:06:31 +0100
Message-Id: <3B8AEFFADD3DD4118F8100508BACEC2C0A289288@spex>

The plugin is working for the following two situations:
1) multi source files, relocatable mode code
2) single source file, absolute mode code

The plugin is not working for the following situation:
3) single source file, relocatable mode code

The reason is quite clear from the following examples.
For single file it is not calling gplink. Maybe the
plugin should default to generate the object code
and call gplink.

Is this a bug with the plugin or I miss something?

Regards,
Xiaofan

---------------------------
welcome to pickit-devel project
Linux (and more) program to work with PICkit 1/2
http://groups.google.com/group/pickit-devel/
---------------------------

1) 2 gpasm source files, relocatable mode code --> okay
Example take from PICKit 1 Lesson 3.

Clean: Deleting intermediary and output files.
Clean: Deleted file "intlib675.O".
Clean: Deleted file "ledint.O".
Clean: Deleted file "C:\software\gpasm\gpasm.HEX".
Clean: Done.
Executing: "C:\Program Files\gputils\bin\gpasm.exe" intlib675.asm -c  -p
12F675
Executing: "C:\Program Files\gputils\bin\gpasm.exe" ledint.asm -c  -p 12F675
ledint.asm:52:Warning [215] Processor superseded by command line.
Executing: "C:\Program Files\gputils\bin\gplink.exe"  
"C:\software\gpasm\intlib675.o" "C:\software\gpasm\ledint.o" -o
"gpasm_reloc.HEX"
message: using default linker script "C:\Program
Files\gputils\lkr\12f675.lkr"
Loaded C:\software\gpasm\gpasm_reloc.COD.
BUILD SUCCEEDED: Thu Sep 29 09:45:55 2005

2) single gpasm file, absolute mode code --> okay
Example take from PICKit 1 Lesson 7.

Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\software\gpasm\autocal.HEX".
Clean: Done.
Executing: "C:\Program Files\gputils\bin\gpasm.exe" autocal.asm -p 12F675
autocal.asm:43:Warning [215] Processor superseded by command line.
Loaded C:\software\gpasm\autocal.COD.
BUILD SUCCEEDED: Thu Sep 29 09:46:31 2005

3) single source file, relocatable mode code --> failed
Example adapted from PICKit 1 Lesson 7.

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\gputils\bin\gpasm.exe" autocalr.asm -p 12F675
autocalr.asm:43:Warning [215] Processor superseded by command line.
autocalr.asm:80:Error [149] Directive only allowed when generating an object
file.
autocalr.asm:87:Error [149] Directive only allowed when generating an object
file.
autocalr.asm:91:Message [302] Register in operand not in bank 0. Ensure bank
bits are correct.
autocalr.asm:98:Error [149] Directive only allowed when generating an object
file.
autocalr.asm:99:Error [118] Overwriting previous address contents.
autocalr.asm:104:Error [149] Directive only allowed when generating an
object file.
autocalr.asm:107:Error [118] Overwriting previous address contents.
autocalr.asm:108:Message [302] Register in operand not in bank 0. Ensure
bank bits are correct.
autocalr.asm:108:Error [118] Overwriting previous address contents.
autocalr.asm:109:Message [302] Register in operand not in bank 0. Ensure
bank bits are correct.
autocalr.asm:109:Error [118] Overwriting previous address contents.
Halting build on first failed translation as user preferences indicate.
BUILD FAILED: Thu Sep 29 09:59:44 2005

4) using MPASM/MPLINk for case 3
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\software\gpasm\autocalr.o".
Clean: Deleted file "C:\software\gpasm\autocalr.ERR".
Clean: Deleted file "autocalr.lst".
Clean: Deleted file "autocal_reloc_mpasm.cof".
Clean: Deleted file "autocal_reloc_mpasm.cod".
Clean: Deleted file "autocal_reloc_mpasm.hex".
Clean: Deleted file "autocal_reloc_mpasm.lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p12F675
"autocalr.asm" /l"autocalr.lst" /e"autocalr.err" /o"autocalr.o"
Executing: "C:\Program Files\Microchip\MPASM Suite\MPLINK.EXE" "12f675.lkr"
"C:\software\gpasm\autocalr.o" /o"autocal_reloc_mpasm.cof"
MPLINK 3.92, Linker
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

MP2COD 3.92, COFF to COD File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

MP2HEX 3.92, COFF to HEX File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

Loaded C:\software\gpasm\autocal_reloc_mpasm.cof.
BUILD SUCCEEDED: Thu Sep 29 09:59:10 2005

5) using MPASM/MPLINk for case 1
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p12F675
"autocal.asm" /l"autocal.lst" /e"autocal.err" /o"autocal.o"
Executing: "C:\Program Files\Microchip\MPASM Suite\MPLINK.EXE" "12f675.lkr"
"C:\software\gpasm\autocal.o" /o"autocal_abs_mpasm.cof"
MPLINK 3.92, Linker
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

MP2COD 3.92, COFF to COD File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

MP2HEX 3.92, COFF to HEX File Converter
Copyright (c) 2005 Microchip Technology Inc.
Errors    : 0

Loaded C:\software\gpasm\autocal_abs_mpasm.cof.
BUILD SUCCEEDED: Thu Sep 29 10:01:58 2005




-----Original Message-----
From: Craig Franklin 
Sent: Thursday, September 29, 2005 9:04 AM
To: ####@####.####
Subject: Re: [gnupic] RE: [PIC] gputils-mplab

Sorry for the delay.

Did you get everything working?



Previous by date: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Next by date: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Previous in thread: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin
Next in thread: 29 Sep 2005 03:06:31 +0100 Re: [gnupic] RE: [PIC] gputils-mplab, Craig Franklin


Powered by ezmlm-browse 0.20.