EPROM error in 12F1840
Posted: Mon Dec 12, 2011 10:48 am
Can some help me. I get an error using to read a byte in the EPROM of 12F1840.
The error message is:
...(93): Illegal redefinition of symbol: MX_EEADR
...(104): Illegal redefinition of symbol: MX_EEDATA
#ifdef MX_EE
#ifdef _BOOSTC
#ifndef MX_EEADR
#ifdef EEADR
#define MX_EEADR eeadr
#endif
#ifdef EEADRL
93 #define MX_EEADR eeadrl
#endif
#endif
#ifndef MX_EEDATA
#ifdef EEDATA
#define MX_EEDATA eedata
#endif
#ifdef EEDATAL
104 #define MX_EEDATA eedatal
#endif
#ifdef EEDATL
#define MX_EEDATA eedatl
#endif
#endif
With 16F88 it works correctly (as it should be). But I do not see any difference in (re)definitions between the 2 test C-files.
What goes wrong with 12f1840 and reading EPROM?
Kind regards
Jan Lichtenbelt
The error message is:
...(93): Illegal redefinition of symbol: MX_EEADR
...(104): Illegal redefinition of symbol: MX_EEDATA
#ifdef MX_EE
#ifdef _BOOSTC
#ifndef MX_EEADR
#ifdef EEADR
#define MX_EEADR eeadr
#endif
#ifdef EEADRL
93 #define MX_EEADR eeadrl
#endif
#endif
#ifndef MX_EEDATA
#ifdef EEDATA
#define MX_EEDATA eedata
#endif
#ifdef EEDATAL
104 #define MX_EEDATA eedatal
#endif
#ifdef EEDATL
#define MX_EEDATA eedatl
#endif
#endif
With 16F88 it works correctly (as it should be). But I do not see any difference in (re)definitions between the 2 test C-files.
What goes wrong with 12f1840 and reading EPROM?
Kind regards
Jan Lichtenbelt