Log in

View Full Version : Error[115]...duplicate label..."debug"



Brian J Walsh
- 8th April 2008, 02:15
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.

sinoteq
- 8th April 2008, 02:42
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'

Brian J Walsh
- 8th April 2008, 09:29
Thanks Sinoteq. That fixed it.