Error code help!


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Location
    Seattle, WA USA
    Posts
    4

    Exclamation Error code help!

    I am new at this pic chip stuff and needed some basic help on an error that I am getting.

    I am using a PIC16F917 for my project and get the following error when I try to compile my program....

    Error[115] c:\pbp\16f917.inc 27 : Duplicate label ("EEDATA" or redining symbol that cannot be redefined)

    I loaded the latest MPLAB IDE v7.60 and then started to get this error.

    Any help would be greatly appreciated.....

    Regards,
    Picman 35

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


    Did you find this post helpful? Yes | No

    Default

    Just making a guess. You are setting the fuses in your code.
    Have you read this? http://www.picbasic.co.uk/forum/showthread.php?t=543
    Read the whole thing.
    If this is not the problem, post the code.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Picman,

    Most PIC chips already have a register called EEDATA.

    If you are trying to create a variable or constant with the same name, you will get an error.
    <br>
    DT

  4. #4
    Join Date
    Jul 2007
    Location
    Seattle, WA USA
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    DT,

    I don't know if my last reply got through, so I will list the code below that the assemblier is looking at.

    Note: The last two lines are the problem, I think?? This code was included in the C:/pbp folder.....

    Any ideas? Should I just remove the last two lines???

    Thanks,
    Picman 35


    ************************************************** **************
    ;* 16F917.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2005 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 02/28/05 *
    ;* Version : 2.46a *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F91x.INC' ; PM header
    device pic16F917, xt_osc, wdt_on, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F917, r = dec, w = -302
    INCLUDE "P16F917.INC" ; MPASM Header
    __config _XT_OSC & _WDT_ON & _CP_OFF
    NOLIST
    endif
    LIST

    #define EEDATA EEDATL
    #define EEADR EEADRL

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    No, those lines are there for a reason, and should stay there.

    Can you post your code.
    Has to be something else wrong.
    <br>
    DT

  6. #6
    Join Date
    Jul 2007
    Location
    Seattle, WA USA
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    DT,

    I don't think it is the code. As stated, I can put one line and still give me the error.
    This all started when I loaded the new MPLAB IDE v7.60. Could this cause the problem?? Or, maybe my settings???

    Here is an example of a code that fails (it gives me the two errors)....

    '************************************************* ***************
    '* Name : UNTITLED.BAS *
    '* Author : [select VIEW...EDITOR OPTIONS] *
    '* Notice : Copyright (c) 2007 [select VIEW...EDITOR OPTIONS] *
    '* : All Rights Reserved *
    '* Date : 8/1/2007 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************

    end

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