EPROM error in 12F1840

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
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

Post 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
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

User avatar
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

Post by Jan Lichtenbelt »

Dear Ben or Steve

Can you help me with this problem?

Thanks a lot

Jan

User avatar
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

Post by Steve »

A similar problem has been fixed here:
http://www.matrixmultimedia.com/mmforum ... ADR#p28303

User avatar
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

Post 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

Post Reply