Eeprom Component example file won't compile

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

Moderator: Benj

Post Reply
Dave Squibb
Flowcode v5 User
Posts: 104
Joined: Fri Oct 10, 2014 11:15 am
Has thanked: 27 times
Been thanked: 22 times
Contact:

Eeprom Component example file won't compile

Post by Dave Squibb »

Hello, I can't get the example file for the EEPROM Component (storage) to compile:

EEPROM[1].c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" EEPROM[1].c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F877A -la -c2 -o EEPROM[1].pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX

.
EEPROM(1): error: failure

failure
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 1


FINISHED

Thanks, Dave.
EEPROM.fcfx
(5.99 KiB) Downloaded 200 times

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: Eeprom Component example file won't compile

Post by LeighM »

Looks like it's the filename that is the problem
EEPROM.fcfx is OK, but EEPROM[1].fcfx is not

Dave Squibb
Flowcode v5 User
Posts: 104
Joined: Fri Oct 10, 2014 11:15 am
Has thanked: 27 times
Been thanked: 22 times
Contact:

Re: Eeprom Component example file won't compile

Post by Dave Squibb »

Sorry Leigh,
I had two instances of the code open together. Eeprom.fcfx compiles ok.

I want to use the eeprom with a 16F627A. This does fail:

EEPROM.c
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" EEPROM.c -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC16F627A -la -c2 -o EEPROM.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX

....................................................................................................................................................................................................................................................................................
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:24): error: unknown identifier 'EEPGD'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:24): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:24): error: invalid operand 'EEPGD'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:19): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:15): error: invalid operand '~(1 << ( EEPGD))'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(86:12): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:24): error: unknown identifier 'CFGS'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:24): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:24): error: invalid operand 'CFGS'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:19): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:15): error: invalid operand '~(1 << ( CFGS))'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(87:12): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:24): error: unknown identifier 'EEPGD'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:24): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:24): error: invalid operand 'EEPGD'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:19): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:15): error: invalid operand '~(1 << ( EEPGD))'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(152:12): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:24): error: unknown identifier 'CFGS'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:24): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:24): error: invalid operand 'CFGS'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:19): error: failed to generate expression
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:15): error: invalid operand '~(1 << ( CFGS))'
C:\Program Files (x86)\Flowcode 6\CAL\PIC\PIC_CAL_EEPROM.c(153:12): error: failed to generate expression
..........................................................................................................
EEPROM.c success

failure
Completed BoostC compilation, return = 1

C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\boostc_16F.exe reported error code 1

Dave Squibb
Flowcode v5 User
Posts: 104
Joined: Fri Oct 10, 2014 11:15 am
Has thanked: 27 times
Been thanked: 22 times
Contact:

Re: Eeprom Component example file won't compile

Post by Dave Squibb »

Leigh, further to the above:
Flowcode 6 set for a PIC16F627A with an empty flowchart and just the Eeprom component loaded to the Dashboard Panel will not compile.
Flowcode 4 set as above compiles correctly.
Any ideas? Thanks, Dave.

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: Eeprom Component example file won't compile

Post by LeighM »

Hi Dave,
Please try the attached updated FCD, just drop this into your Flowcode 6 installation \FCD\PIC directory
and reload your project
Leigh
Attachments
16F627A.fcdx
(12.8 KiB) Downloaded 199 times

Dave Squibb
Flowcode v5 User
Posts: 104
Joined: Fri Oct 10, 2014 11:15 am
Has thanked: 27 times
Been thanked: 22 times
Contact:

Re: Eeprom Component example file won't compile

Post by Dave Squibb »

That worked Leigh, Thanks, dave

Post Reply