PIC12F609 -- trivial program fails to compile to hex

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

Moderator: Benj

Post Reply
gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

PIC12F609 -- trivial program fails to compile to hex

Post 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
Attachments
PIC12F609 test.fcfx
(4.01 KiB) Downloaded 281 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

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

Post 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.
Attachments
12F609.fcdx
(8.6 KiB) Downloaded 270 times
Martin

gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

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

Post by gtc »

Hi Martin,

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

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

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

Post 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
Martin

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: PIC12F609 -- trivial program fails to compile to hex

Post by Benj »

Thanks Martin,

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

gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

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

Post by gtc »

@Ben @Martin,

Many thanks for the explanation and fixes.

Post Reply