Page 1 of 1

EPROM error in 12F1840

Posted: Mon Dec 12, 2011 10:48 am
by Jan Lichtenbelt
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

Re: EPROM error in 12F1840

Posted: Tue Dec 13, 2011 3:45 pm
by Jan Lichtenbelt
Dear Ben or Steve

Can you help me with this problem?

Thanks a lot

Jan

Re: EPROM error in 12F1840

Posted: Tue Dec 13, 2011 5:23 pm
by Steve
A similar problem has been fixed here:
http://www.matrixmultimedia.com/mmforum ... ADR#p28303

Re: EPROM error in 12F1840

Posted: Tue Dec 13, 2011 9:38 pm
by Jan Lichtenbelt
Hi Steve,

Thanks a lot. It works. Be informed that the problem is still met in V4.5 for 12F1840.

Kind regards


Jan Lichtenbelt