Error[115]...duplicate label..."debug"


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Error[115]...duplicate label..."debug"

    I am trying to program a PIC18F4620 using PBP246a, MPASM 5.16 and MCSP 3.0.0.5.

    I get warnings about the __config directive style being out of date, which I can live with.

    However, I also get an error as follows:

    Error[115] c:\pbp246\pbpic18.lib 1513:duplicate label ("debug" or redefining symbol that cannot be redifined.)

    If I comment out all of the debug statements in the PBP code the error goes away. If I re-introduce any one of them the error returns.

    Can anyone tell me why my debug statements have become unwelcome?

    Thanks,

    Brian Walsh.
    Last edited by Brian J Walsh; - 8th April 2008 at 02:25. Reason: dropped letter

  2. #2
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default Time for some file editing

    Look in the MPASM Suite library on your harddrive. There you will find a P18F4620.INC file. In this file there is a label called DEBUG, that is why you get this error. Just change the file
    so you remark the line for debug, use ; to do it like the example below. This will fix it untill next time you upgrade MPLAB.

    LVDCON EQU H'0FD2'
    OSCCON EQU H'0FD3'
    ;DEBUG EQU H'0FD4'
    T0CON EQU H'0FD5'
    TMR0L EQU H'0FD6'

  3. #3


    Did you find this post helpful? Yes | No

    Default Debug fixed

    Thanks Sinoteq. That fixed it.

Similar Threads

  1. PBP projects for R/C models
    By malc-c in forum Code Examples
    Replies: 771
    Last Post: - 21st October 2016, 12:56
  2. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  3. I2C optional label question
    By F1CHF in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th July 2009, 17:17
  4. Can a line label be aliased to a VAR?
    By LinkMTech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd December 2008, 22:29
  5. 18F452 "Unknown Processor" errors
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th April 2006, 03:56

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