Hello, When i use a Eeprom Component Macro i get the errors, (on 2 pc's).
C:\Users\Danny\Desktop\HT 1100 rev3 28-11-10.c(741): Illegal redefinition of symbol: MX_EEADR
C:\Users\Danny\Desktop\HT 1100 rev3 28-11-10.c(752): Illegal redefinition of symbol: MX_EEDATA
Thanks Danny
Eeprom compiler error on PIC16F946
Moderator: Benj
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Eeprom compiler error on PIC16F946
Hello,
Ok it seems that for this device both variations of the EEPROM registers exist so our detection code is failing.
If you use the custom code feature then you can remove the errors by editing the EEPROMRead function.
The start of the read function looks like as shown above.
Change to match this.
Ok it seems that for this device both variations of the EEPROM registers exist so our detection code is failing.
If you use the custom code feature then you can remove the errors by editing the EEPROMRead function.
Code: Select all
char data = 0;
#ifdef _BOOSTC
#ifdef MX_EE
#ifndef MX_EEADR
#ifdef EEADR
#define MX_EEADR eeadr
#endif
#ifdef EEADRL
#define MX_EEADR eeadrl
#endif
#endif
#ifndef MX_EEDATA
#ifdef EEDATA
#define MX_EEDATA eedata
#endif
#ifdef EEDATAL
#define MX_EEDATA eedatal
#endif
#ifdef EEDATL
#define MX_EEDATA eedatl
#endif
#endif
Change to match this.
Code: Select all
char data = 0;
#ifdef _BOOSTC
#ifdef MX_EE
#ifndef MX_EEADR
#ifdef EEADR
#define MX_EEADR eeadr
#endif
#endif
#ifndef MX_EEDATA
#ifdef EEDATA
#define MX_EEDATA eedata
#endif
#ifdef EEDATAL
#define MX_EEDATA eedatal
#endif
#endif
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
Re: Eeprom compiler error on PIC16F946
Sorry i don't understand what you mean.
do i need to place a C-code block with your custom code?
And where must i place this.
I do not see, any changement in the first or second C-code (for me, it looks like the same, abadacabra )
do i need to place a C-code block with your custom code?
And where must i place this.
I do not see, any changement in the first or second C-code (for me, it looks like the same, abadacabra )
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Re: Eeprom compiler error on PIC16F946
Right click the EEPROM component and select "customize code", then select and edit the EEPROMRead macro.
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
Re: Eeprom compiler error on PIC16F946
Thanks, but i don't see it.
- Attachments
-
- Nieuw-1.jpg (129.11 KiB) Viewed 5502 times
-
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- Contact:
Re: Eeprom compiler error on PIC16F946
hello dannyvanneijenhoff
show the picture...
select in the viewe tab > panel and > panel properties >then click on the ...(3 points) on the right!!! open the window
regards Wolfgang
show the picture...
select in the viewe tab > panel and > panel properties >then click on the ...(3 points) on the right!!! open the window
regards Wolfgang
- Attachments
-
- component........gif
- (25.17 KiB) Downloaded 1175 times
-
- Posts: 65
- Joined: Thu Feb 07, 2008 7:59 am
- Has thanked: 17 times
- Been thanked: 10 times
- Contact:
Re: Eeprom compiler error on PIC16F946
THANKS,
OK the component in the panel.
OK the compiler is working . Now test/edit the program
OK the component in the panel.
OK the compiler is working . Now test/edit the program