Compiling Errors for pic 18F6520


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    59

    Default Compiling Errors for pic 18F6520

    I modified a working program and the mods were mostly adding a bunch more if/then hserout commands. But then when I compile I get the attached errors.
    Mainly "Error[126] Argument out of range" and
    "Warning[220] Address exceeds maximum range for this processor"

    what do these mean, I haven't seen this before.

    Thank you,
    Hylan
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default Re: Compiling Errors for pic 18F6520

    Update: I just deleted a chunk of the code (a bunch of the if/then's) and it compiled fine. So it looks like there is a max number???

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Compiling Errors for pic 18F6520

    High likely you run out of codespace OR you're using some unavailable feature of this PIC in a ASM routine... hard to tell without the code.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2007
    Posts
    59


    Did you find this post helpful? Yes | No

    Default Re: Compiling Errors for pic 18F6520

    So how big or how much can my 18F6520 hold and is there a way to tell in PBPro how big you file will be while you're writing the code? Or do you just compile and look at the hex file size?
    Thank you,
    Hylan

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Compiling Errors for pic 18F6520

    There are several ways. One quick way if you if you are using MCS is to look at the bottom of the editor.
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

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