Hi, I have encountered some kind of duplicate #define type problem (?). The error is
I'm thinking that there may be a typo in the PIC16F1509.PBPINC file...Error[115] ...\LBA_1509_PBP3_0_1.X\MAIN.ASM 14 : Duplicate label ("SPBRG" or redefining symbol that cannot be redefined)
I see there is another thread on the subject relating to a different problem so it got me thinking and I found a workable (?) solution, for the time being at least. I'm not sure of the implications of what I have done so am seeking advise on this. I have the blinky led program working now, to test this idea out, but the blinky led doesn't require the use of much PIC hardware. What I have done is comment out a line in the PIC16F1509.PBPINC file like this:
As far as I know this only relates to the EUSART baudrate settings. I have looked in the p16F1509.inc file but can't really find anything useful apart from the fact that there is SPBRGL and SPBRGH. I'm thinking that there may be a typo in the PIC16F1509.PBPINC file but I don't know the best way to correct it.#HEADER
LIST
LIST p = 16F1509, r = dec, w = -302, c = 255
INCLUDE "P16F1509.INC" ; MPASM Header
BLOCK_SIZE EQU 32
;#define SPBRG SPBRGL; Comment out this line
#define EEDATL PMDATL
#define EEADRL PMADRL
#define EEDATH PMDATH
#define EEADRH PMADRH
#define EECON1 PMCON1
#define EECON2 PMCON2
#ENDHEADER
Any help appreciated
Chris
Bookmarks