Link Step Failed in MPLAB using P18F4550

Discussion in 'Embedded Systems and Microcontrollers' started by corsair, Mar 19, 2010.

  1. corsair

    Thread Starter Member

    Mar 6, 2010
    51
    1
    I'm new to PIC microcontrollers and this is one thing that has been haunting me for a while. I don't understand the cause of this "Link Step Failed" problem.

    I am using the P18F4550 uC, which is wired to a 4-digit, 7-seg display and some switches. This is for a school project.

    The error I am getting after I try to build is as follows:
    Here is my code from APP_Reset to main:
    Code ( (Unknown Language)):
    1. APP_Reset code 0x1000
    2.         goto    main   
    3.  
    4. APP_main code 0x102A   
    5.  
    6. main:
    This is inside of my "18F4550.lkr" file:
    Code ( (Unknown Language)):
    1. CODEPAGE   NAME=vectors    START=0x0            END=0x29           PROTECTED
    2. //CODEPAGE   NAME=page       START=0x2A           END=0x7FFF
    3. CODEPAGE   NAME=page       START=0x1000           END=0x8FFFF
    4. CODEPAGE   NAME=idlocs     START=0x200000       END=0x200007       PROTECTED
    5. CODEPAGE   NAME=config     START=0x300000       END=0x30000D       PROTECTED
    6. CODEPAGE   NAME=devid      START=0x3FFFFE       END=0x3FFFFF       PROTECTED
    7. CODEPAGE   NAME=eedata     START=0xF00000       END=0xF000FF
    I've even commented out most of my code, I just don't know what the cause of this problem is. Any help would be much appreciated, and if more information is needed I would be glad to provide it.
     
  2. corsair

    Thread Starter Member

    Mar 6, 2010
    51
    1
    I observed a fault.

    I tried uncommenting my code little by little, and I was able to recover a lot of it. However, when I recover too much, it'll give me the link step failed error- so am I just running out of memory? Is there a way to change this in the linker?
     
  3. corsair

    Thread Starter Member

    Mar 6, 2010
    51
    1
    just in case anyone needs the solution, here it is:

     
Loading...