Error[126] & Warning[220]


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Location
    Virginia
    Posts
    65

    Default Error[126] & Warning[220]

    Ladies & Gents,

    I spent the weekend figuring out a workable code for using a DS1302 as a countdown timer. Unfortunately, everytime I attempt to compile I get the following:

    Code:
    Error[126]   C:\PBP\PBPPIC14.LIB 556 : Argument out of range (1032 not between 0 and 1023)
    Warning[220] C:\PBP\PBPPIC14.LIB 766 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 767 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 83 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 84 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 781 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 37 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 733 : Address exceeds maximum range for this processor.
    And so on.

    I'm using a PIC16F676 and I've modified the config bits slightly by modifying the .INC file directly:

    Code:
    ;****************************************************************
    ;*  16F676.INC                                                  *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2003 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 11/06/03                                        *
    ;*  Version   : 2.45                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F676.INC'	; PM header
            device  pic16F676, intrc_osc, wdt_on, mclr_on, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F676, r = dec, w = -302
            INCLUDE "P16F676.INC"	; MPASM  Header
            __config _CPD_OFF & _CP_OFF & _BODEN_OFF & _MCLRE_ON & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
            NOLIST
        endif
            LIST
    If I comment out certain portions of the code, it compiles fine. I thought at first that I might have just coded something wrong, but there are identical commands not commented out that seem to work fine. I don't know if I've run out of space, but I suspect I have a setting wrong somewhere.

    I've done my best to search the forum for these errors, but I'm thrown for a bit of a loop as every case seems to have a different solution and the solutions I've seen don't appear clear cut. From what I've read it might be the MPASM version, a hidden setting somewhere in PBP or MPLAB, or gremlins. Any advice is greatly appreciated.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by elec_mech View Post
    Ladies & Gents,

    I spent the weekend figuring out a workable code for using a DS1302 as a countdown timer. Unfortunately, everytime I attempt to compile I get the following:

    Code:
    Error[126]   C:\PBP\PBPPIC14.LIB 556 : Argument out of range (1032 not between 0 and 1023)
    Warning[220] C:\PBP\PBPPIC14.LIB 766 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 767 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 83 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 84 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 781 : Address exceeds maximum range for this processor.
    Warning[220] C:\CODE\COUNTDOWN TIMER CODE 011809.MAC 37 : Address exceeds maximum range for this processor.
    Warning[220] C:\PBP\PBPPIC14.LIB 733 : Address exceeds maximum range for this processor.
    And so on.

    I'm using a PIC16F676 and I've modified the config bits slightly by modifying the .INC file directly:

    Code:
    ;****************************************************************
    ;*  16F676.INC                                                  *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2003 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 11/06/03                                        *
    ;*  Version   : 2.45                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F676.INC'	; PM header
            device  pic16F676, intrc_osc, wdt_on, mclr_on, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F676, r = dec, w = -302
            INCLUDE "P16F676.INC"	; MPASM  Header
            __config _CPD_OFF & _CP_OFF & _BODEN_OFF & _MCLRE_ON & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
            NOLIST
        endif
            LIST
    If I comment out certain portions of the code, it compiles fine. I thought at first that I might have just coded something wrong, but there are identical commands not commented out that seem to work fine. I don't know if I've run out of space, but I suspect I have a setting wrong somewhere.

    I've done my best to search the forum for these errors, but I'm thrown for a bit of a loop as every case seems to have a different solution and the solutions I've seen don't appear clear cut. From what I've read it might be the MPASM version, a hidden setting somewhere in PBP or MPLAB, or gremlins. Any advice is greatly appreciated.
    Looks like you have exceeded the memory of your chip, if I read this data sheet correctly you only have 1K available with this PIC
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Apr 2005
    Location
    Virginia
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Joe S,

    Thank you! I didn't think it was that simple. I'll use another chip with more memory. Thanks again.

Members who have read this thread : 1

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