Page 1 of 1

Eeprom Component example file won't compile

Posted: Wed Nov 29, 2017 3:40 pm
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 221 times

Re: Eeprom Component example file won't compile

Posted: Wed Nov 29, 2017 4:03 pm
by LeighM
Looks like it's the filename that is the problem
EEPROM.fcfx is OK, but EEPROM[1].fcfx is not

Re: Eeprom Component example file won't compile

Posted: Wed Nov 29, 2017 4:58 pm
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

Re: Eeprom Component example file won't compile

Posted: Fri Dec 01, 2017 3:06 pm
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.

Re: Eeprom Component example file won't compile

Posted: Fri Dec 01, 2017 3:31 pm
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

Re: Eeprom Component example file won't compile

Posted: Fri Dec 01, 2017 4:03 pm
by Dave Squibb
That worked Leigh, Thanks, dave