EEprom not supported on MPLAB Xpress board? - Solved

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

Moderator: Benj

Post Reply
chico
Posts: 34
Joined: Fri Dec 26, 2008 11:30 pm
Has thanked: 12 times
Been thanked: 10 times
Contact:

EEprom not supported on MPLAB Xpress board? - Solved

Post by chico »

Hi - I've been working with the MPLAB Xpress board. Very cheap for what you get, love the integration with Flowcode. "Compile to Chip" works great, is better than getting out the ICD3 to program the PIC. Looks like there's been some good interaction with Microchip on this.

However, I just added an EEprom device, and it the compiler barfs:

Code: Select all

Target folder: C:\Users\TEST\Desktop
Title:         
Description:   
Device:        PIC.16F.Microchip MPLABXpress
Generated by:  Flowcode v7.2.1.4
Date:          Saturday, July 08, 2017 13:07:34
Users:         1
Registered to: xxxxx
Licence key:   yyyyy
http://www.matrixtsl.com
Launching the compiler...
Build date: Apr 12 2017
Part Support Version: 1.42
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

    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"
    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
(908) exit status = 1
(908) exit status = 1




FINISHED

I've attached the Flowcode project with no code, just the component, and you can see the compiler errors.

Would very much like to understand how to get this resolved as I'd rather not have to port the entire project to another processor at this point....

Thanks...
Attachments
FC_mplabxpress_test_001.fcfx
No code or flowcharts, just the EEprom component...
(6.9 KiB) Downloaded 261 times

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: EEprom not supported on MPLAB Xpress board?

Post by Benj »

Hello,

This file should solve the issues for you. Simply copy to your "Flowcode 7/CAL/PIC" folder and the compilation should hopefully now complete correctly.
PIC_CAL_EEPROM.c
(4.46 KiB) Downloaded 280 times
Let me know how you get on.

chico
Posts: 34
Joined: Fri Dec 26, 2008 11:30 pm
Has thanked: 12 times
Been thanked: 10 times
Contact:

Re: EEprom not supported on MPLAB Xpress board?

Post by chico »

Bravo. Works perfectly. Thank you.

Post Reply