PDA

View Full Version : Fail to compile, COD file missing



Jumper
- 28th June 2009, 09:55
Hi,

Suddenly my computer refuses to compile my MPLAB projects. I have reinstalled PBP and MPLAB 8.15a as suggested on mplabs webpage. I can understand why i get the first error... since the compiler haven't made any COD file in the project folder... but it generates ASM and LST files.

Any ideas what could be the problem before I test fly my PC from the 9:th floor??

Executing: "C:\pbp\PBPW.EXE" -ampasmwin -oq -z -p18F4620 "Loader R1A.bas"
PICBASIC PRO(TM) Compiler 2.47, (c) 1998, 2006 microEngineering Labs, Inc.
All Rights Reserved.

ERROR: Unable to access file E:\Per\LOADER R1A\Loader R1A.COD
Error processing COD file E:\Per\LOADER R1A\Loader R1A.COD
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 185 : Overwriting previous address contents (0000)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 185 : Overwriting previous address contents (0001)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 201 : Overwriting previous address contents (0002)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 201 : Overwriting previous address contents (0003)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 209 : Overwriting previous address contents (0004)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 209 : Overwriting previous address contents (0005)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 217 : Overwriting previous address contents (0006)
Error[118] E:\PER\LOADER R1A\LOADER R1A.ASM 217 : Overwriting previous address contents (0007)
Warning[203] E:\PER\LOADER R1A\LOADER R1A.ASM 731 : Found opcode in column 1. (GOTO)
Halting build on first failure as requested.
BUILD FAILED: Sun Jun 28 16:48:14 2009

Bruce
- 28th June 2009, 17:07
I had similar errors after updating the C18 C compiler. It altered my path statement, so
MPLAB was using a newer version of the MPASM assembler that wasn't compatible with
the version of PBP I was using.

What was really odd was that in MPLAB, when the MPASM assembler window popped-up,
it showed it was using the older version of MPASM, but examining the .LST file showed it
was actually using the newer version of MPASM in my C18 directory.

I fixed it by editing my path statement placing PBP & MPLAB before the C18 directory entry.

Once it started using the older version of MPASM, the problem was cured.

Jumper
- 29th June 2009, 13:03
Hi Bruce, I tried to move the path but the problem remains... my path is:

c:\pbp\;C:\Program Files\Microchip\MPASM Suite\;D:\MCC18\mpasm;D:\MCC18\bin

Not the longest one in the world but the problem is still here.

I planned to reply yesterday but my monitor commited harakiri so I had to go out for a new nicer one :-)


/me

Bruce
- 29th June 2009, 16:04
What version of MPASM does it show on-screen when you compile?

Also check the .lst file. What version does it show there?

Jumper
- 29th June 2009, 17:20
Success!! I had a small typo in the path... d:\ instead of c:\ and that was why MPLAB wanted to run the 5.30 version of MPASMWIN when we wanted it to run the older 5.22.

Thank you very much for your help!!