Fail to compile, COD file missing


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Location
    China
    Posts
    266

    Default Fail to compile, COD file missing

    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
    Last edited by Jumper; - 28th June 2009 at 10:31.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Nope

    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

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    What version of MPASM does it show on-screen when you compile?

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

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Finally

    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!!

Similar Threads

  1. Configuration bits in a HEX file gone missing?
    By grzes.r in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd February 2010, 01:10
  2. Replies: 1
    Last Post: - 27th August 2009, 02:42
  3. Cannot Open File Compile Error
    By Perrin` in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th January 2009, 18:18
  4. Try to Compile 18F4550 Macro missing
    By Denicou in forum USB
    Replies: 7
    Last Post: - 28th January 2007, 22:24
  5. MBLAB fails to load cod file
    By prylbogen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th April 2005, 11:58

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts