Page 1 of 1

PIC12F609 -- trivial program fails to compile to hex

Posted: Sat Sep 12, 2015 4:49 am
by gtc
Flowcode v 6.1.2.0

The attached trivial program using target PIC12F609 fails to compile. It returns the infamous error code 1.

Note: Exactly the same Flowcode environment used for many other successful compilations using other PIC chips.
Launching the compiler...
C:\Program Files\Flowcode 6\compilers\pic\boostc\boostc_16F.exe -v -t PIC12F609 "PIC12F609 test.c"
.....
Launching BoostC...
.................................
Completed BoostC compilation, return = 1

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

FINISHED

Re: PIC12F609 -- trivial program fails to compile to hex

Posted: Sat Sep 12, 2015 6:51 pm
by medelec35
Hi gtc,
As I don't work for Matrix, here is an unofficial temporary solution.
I have modified:
12F609.fcdx
That's in:
C:\Program Files (x86)\Flowcode 6\FCD\PIC (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\PIC(If 32 bit windows.)
If you make a copy of the original files and replace with the attached file, hopefully you will be able to compile.
I have not thoroughly checked the fcdx file so there may or may not be other issues.

Martin.

Re: PIC12F609 -- trivial program fails to compile to hex

Posted: Mon Sep 14, 2015 2:46 am
by gtc
Hi Martin,

I don't recognize the file type fcdx. My Flowcode project files are type fcfx.

Re: PIC12F609 -- trivial program fails to compile to hex

Posted: Mon Sep 14, 2015 6:54 am
by medelec35
Hi gtc,
files with .fcdx are chip definition files for Flowcode V6.
There is a definition file for every target device.
They live in C:\Program Files (x86)\Flowcode 6\FCD\PIC (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\PIC(If 32 bit windows.)
Definition files contain all sorts of important information regarding target device.
E.g. Configuration information, How may pins and their functions, types of interrupts etc.
Flowcode uses the definition file while compiling.
Hence if there is a bug within file then Flowcode will not be able to compile successfully.
You can keep a copy of the original 12F609.fcdx and replace it with the version I attached on the above post.

Martin

Re: PIC12F609 -- trivial program fails to compile to hex

Posted: Mon Sep 14, 2015 11:54 am
by Benj
Thanks Martin,

The fix works for me and I have checked it into the master files ready for the next release.

Re: PIC12F609 -- trivial program fails to compile to hex

Posted: Mon Sep 14, 2015 12:31 pm
by gtc
@Ben @Martin,

Many thanks for the explanation and fixes.