Error in EEPROM call

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Error in EEPROM call

Post by jadiflow »

Out of frustration that I can't get the 16F886 ADC working correctly I decided to get another PIC and see if that works better. PIC18F25K42 has the same package and the same pin connections so completely functional and physical compatible. It even has a 12 bit ADC versus 10 bit for the 'F886.

But now I have another issue: when compiling to hex, I get this error message:

Code: Select all

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Write()
   111:	bInterruptsEnabled = (INTCONbits.GIE);
	                      ^ (192) undefined identifier "INTCONbits"
	        (196) struct/union required ^
   112:	INTCONbits.GIE = 0;
	               ^ (196) struct/union required
   122:	INTCONbits.GIE = 1;
	               ^ (196) struct/union required
(908) exit status = 1
(908) exit status = 1

C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1

FINISHED
This seems an issue in the FC library; how can I solve this?

Jan Didden
Linear Audio

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Re: Error in EEPROM call

Post by jadiflow »

I just changed the controller type from 18F25K42 to an 18F25K40 which has the same EEPROM location and same EEPROM size, and that compiles without errors.

So it seems that the EEPROM library somehow has an error in the definition for the 18F25K42.

Edit: tried 18F26K42, which can be selected but when compiling gives:

"(922) chip "18F26K42" not present in chipinfo file "C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic\dat\picc-18.ini"


Jan

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Re: Error in EEPROM call

Post by jadiflow »

Can anybody please tell me if the errors noted in the previous post are in my app or in the library files?

Thanks,

Jan

User avatar
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: Error in EEPROM call

Post by Benj »

Hi Jan,

Hopefully this updated CAL file should fix the EEPROM related compilation errors for you.
PIC_CAL_EEPROM.c
(4.78 KiB) Downloaded 237 times
Simply copy the file into your "Flowcode 7/CAL/PIC" folder.

Let us know how you get on.

jadiflow
Flowcode v5 User
Posts: 273
Joined: Thu Apr 17, 2008 9:59 am
Has thanked: 19 times
Been thanked: 16 times
Contact:

Re: Error in EEPROM call

Post by jadiflow »

Yes that fixed it, thanks Ben.

Jan

Post Reply