Page 1 of 1

EEPROM not compilling in 16F917 and others.

Posted: Wed Dec 05, 2007 12:23 am
by Polanco
Hi, when i compile to HEX a project that includes an EEPROM module, there's an error message if the project uses a 16F917 and others 16F9XX.
Changing the PIC to a classic 16F877A, everithing goes OK.
Can you help me please?

Posted: Wed Dec 05, 2007 8:53 am
by Steve
Hello.

Yes, there is a problem with the code generation of the EEPROM component for the 16F9xx devices. We have fixed it here, but it has not been released yet.

For now, here is a workaround. Put the following code into the "defines" box of the "supplementary code" window:

Code: Select all

#ifndef eeadr
    #define eeadr eeadrl
#endif
#ifndef eedata
    #define eedata eedatl
#endif

Better but not enough

Posted: Wed Dec 05, 2007 5:07 pm
by Polanco
Oh, thank you very much.
ItΒ΄s not working yet. ThereΒ΄s still one error:

C:\Documents and Settings\Administrador\Escritorio\EE\Flowcode1.c(168): "#endif" outside of "#if"

What must i do then?

Sorry, Steve. It's working.

Posted: Thu Dec 06, 2007 12:56 am
by Polanco
I confused the suplementary code with the AddDefines module. Now it's working.
By the way, in my spanish version some names are in english.
Thank you very much, I really love this software.
I can make my own midi controls and guitar switching units now, customized for myself. Very nice

Posted: Thu Dec 06, 2007 11:35 am
by Steve
Great - I'm glad it's working now.

Re: EEPROM not compilling in 16F917 and others.

Posted: Fri Jul 04, 2008 12:11 am
by Polanco
Hi again.
That old problem is back in the new 3.4.7.48 version.
16f917 not compiles the EEPROM module.
And now the suplementary code you sent me doesn't work neither.

Re: EEPROM not compilling in 16F917 and others.

Posted: Fri Jul 04, 2008 9:28 am
by Steve
Hi,

I've just tested it here and it works fine. Remember that the code needs to go into the "defines" section of the "supplementary code" window (i.e. the top section).

Re: EEPROM not compilling in 16F917 and others.

Posted: Fri Jul 04, 2008 6:08 pm
by Polanco
Yes, Steve, IΒ΄m doing that, just like before.
IΒ΄ll send you the test project.

Re: EEPROM not compilling in 16F917 and others.

Posted: Fri Jul 04, 2008 6:16 pm
by Polanco
Here is a simple test. I can simulate it but doesn't compile eaven pasting the suplementary code.

Re: EEPROM not compilling in 16F917 and others.

Posted: Mon Jul 07, 2008 9:21 am
by Steve
I've just downloaded this program and it compiles fine here. Can you please also post the "C" file that is generated by your copy of FLowcode - this will help track down the problem.

Re: EEPROM not compilling in 16F917 and others.

Posted: Mon Jul 07, 2008 4:48 pm
by Polanco
OK, here it goes:


File name: C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\EEPROM TEST-1.c
Generated by: Flowcode v3.4.7.48
Date: Monday, July 07, 2008 13:11:26
Licence: Professional
Registered to: Ricardo Musso


http://www.matrixmultimedia.com



Launching the compiler...

C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F917 "EEPROM TEST-1.c"

BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited


EEPROM TEST-1.c
Starting preprocessor: "C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\EEPROM TEST-1.c" -i "C:\Archivos de programa\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F917 -la -c2 -o "EEPROM TEST-1.pp" -v -d _BOOSTC -d _PIC16

C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\EEPROM TEST-1.c(116): EEPROM error - MX_EEDATA not set
C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\EEPROM TEST-1.c(173): EEPROM error - MX_EEDATA not set

2 errors detected
Error: preprocessing error

failure

.....................
Return code = 1

Flowcode no pudo compilar el cΓ³digo C del diagrama de flujo por los siguientes errores:


Si su diagrama de flujo contiene cΓ³digo C, revΓ­selo cuidadosamente. Si su diagrama de flujo no contiene cΓ³digo C o si ya ha revisado el cΓ³digo C, contactese con Soporte TΓ©cnico.

FINISHED

Re: EEPROM not compilling in 16F917 and others.

Posted: Mon Jul 07, 2008 4:56 pm
by Steve
Hi Polanco,

By the C file, I meant actually attach the file "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\EEPROM TEST-1.c".

Re: EEPROM not compilling in 16F917 and others.

Posted: Tue Jul 08, 2008 2:40 am
by Polanco
Sorry Steve.

Re: EEPROM not compilling in 16F917 and others.

Posted: Thu Jul 10, 2008 11:30 am
by Benj
Hello

Please place the attached file into your Flowcode V3/Components folder and restart Flowcode. Your EEPROM code should now compile correctly.

Default - C:\Program Files\Matrix Multimedia\Flowcode V3\Components.

Re: EEPROM not compilling in 16F917 and others.

Posted: Sun Jul 13, 2008 2:53 pm
by Polanco
Eureka!
Thank you Benj and Steve. ItΒ΄s working now.