Connect with us

MPLinker confusion

Discussion in 'Electronic Basics' started by Glenn Ashmore, Apr 5, 2005.

Scroll to continue with content
  1. I have been gradually building a program for a PIC16F877 and debuging it as
    I went. All of a sudden I am getting an error that it cannot fit in
    absolute section Start0x00 Length 0x00004A4

    Looks like I need to break it up and make it relocatable but all the docs
    are very confusing. Is there a simple explanation for how to do it? David
    Benson's books just barely hint at the subject.

    --
    Glenn Ashmore

    I'm building a 45' cutter in strip/composite. Watch my progress (or lack
    there of) at: http://www.rutuonline.com
    Shameless Commercial Division: http://www.spade-anchor-us.com
     
  2. You may need to include a linker file, which you can find in the IDE
    directories. You can also look at that linker file to determine whats
    up. However, you should notice that if you put the program into the
    vectors section, it's only 5 words long. Try

    PROG1 code

    before your code... that may make it happier. You also have to create a
    vectors section. Thus, do

    STARTUP code
    goto startcode
    nop
    nop
    nop
    goto interruptcode

    as well. If you don't have any interrupt code, just replace the last
    thing with a nop.

    --
    Regards,
    Robert Monsen

    "Your Highness, I have no need of this hypothesis."
    - Pierre Laplace (1749-1827), to Napoleon,
    on why his works on celestial mechanics make no mention of God.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-