16F18xxx EEPROM

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

16F18xxx EEPROM

Post by EtsDriver »

Seems that EEPROM component doesnt like 16F18877. Throws errors at compilation just by adding it to project:

Code: Select all

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Read()
    44:	EEADR = Address & 0xff;
	^ (192) undefined identifier "EEADR"
    52:	EECON1bits.EEPGD = 0;
	^ (192) undefined identifier "EECON1bits"
	                 ^ (196) struct/union required
    53:	EECON1bits.CFGS = 0;
	                ^ (196) struct/union required
    55:	EECON1bits.RD = 1;
	              ^ (196) struct/union required
    56:	data = EEDATA;
	       ^ (192) undefined identifier "EEDATA"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_EEPROM.c: FC_CAL_EE_Write()
    70:	while ((EECON1bits.WR));
	        ^ (192) undefined identifier "EECON1bits"
	                     ^ (196) struct/union required
    71:	EEADR = Address & 0xff;
	^ (192) undefined identifier "EEADR"
    75:	EEDATA = Data;
	^ (192) undefined identifier "EEDATA"
    80:	EECON1bits.EEPGD = 0;
	                 ^ (196) struct/union required
    81:	EECON1bits.CFGS = 0;
	                ^ (196) struct/union required
    83:	EECON1bits.WREN = 1;
	                ^ (196) struct/union required
    86:	EECON2 = 0x55;
	^ (192) undefined identifier "EECON2"
    88:	EECON1bits.WR = 1;
	              ^ (196) struct/union required
    89:	while ((EECON1bits.WR));
	                     ^ (196) struct/union required
    92:	EECON1bits.WREN = 0;
	                ^ (196) struct/union required
Ill just keep the good work up!

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: 16F18xxx EEPROM

Post by LeighM »

I've made some adjustments to the CAL file, attached. Based on datasheet, but not yet tested.
Attachments
PIC_CAL_EEPROM.c
(4.46 KiB) Downloaded 185 times

Post Reply