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
EPROM error in 12F1840
Moderator: Benj
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
EPROM error in 12F1840
- Attachments
-
- test_EPROM_16F88.c
- (5 KiB) Downloaded 228 times
-
- test_EPROM_12F1840.c
- (4.96 KiB) Downloaded 208 times
-
- test_EPROM_12F1840.fcf
- (4.5 KiB) Downloaded 208 times
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
- Steve
- Matrix Staff
- Posts: 3434
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: EPROM error in 12F1840
A similar problem has been fixed here:
http://www.matrixmultimedia.com/mmforum ... ADR#p28303
http://www.matrixmultimedia.com/mmforum ... ADR#p28303
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: EPROM error in 12F1840
Hi Steve,
Thanks a lot. It works. Be informed that the problem is still met in V4.5 for 12F1840.
Kind regards
Jan Lichtenbelt
Thanks a lot. It works. Be informed that the problem is still met in V4.5 for 12F1840.
Kind regards
Jan Lichtenbelt