Page 1 of 1

Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 11:19 am
by dixonax
Hi
Matrix Multimedia
Flowcode was unable to compile the flowcode, how can overcome this problem.
regards
dixon




Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F72 "TEST4.c"
BoostC Optimizing C Compiler Version 6.95 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2009 Pavel Baranov
Copyright(C) 2004-2009 David Hobday

Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited


TEST4.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\pp.exe" "C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\include" -d _PIC16F72 -la -c2 -o "C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.pp" -v -d _BOOSTC -d _PIC16


....

C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(210:9): error: unknown identifier 'adresh'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(210:2): error: error in expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(210:2): error: failed to generate expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(221:13): error: unknown identifier 'adresh'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(221:13): error: invalid operand 'adresh'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(221:20): error: failed to generate expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(221:20): error: invalid operand '<<'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(221:10): error: failed to generate expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:23): error: unknown identifier 'adres1'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:23): error: invalid operand 'adres1'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:30): error: failed to generate expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:30): error: invalid operand '>>'
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:20): error: failed to generate expression
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:20): error: invalid operand '| '
C:\Program Files\Matrix Multimedia\Flowcode V4\exampls\TEST4.c(222:10): error: failed to generate expression
TEST4.c success

failure

..........
Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED

Re: Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 2:00 pm
by saschech@gmx.de
Hallo Steve

I have test with ...picd1 installation > i get also error 1.

in v3 there is a macro "sampleACD" and in V4?

In v3 all ok(with "sampleACD")

Regards Wolfgang

Re: Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 2:22 pm
by Steve
There should be no problem with the removal of SampleADC. This is now done implicitly when an ADC reading is read.

It seems that the FCD file and/or the C code file for the ADC for this chip has an error - I'll ask Ben here to check and provide a fix (if required).

Re: Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 2:29 pm
by saschech@gmx.de
Hallo Steve

I change the target to 18f6722 and 18f8722 ,in both case there is Return Code =1............

Regards Wolfgang

Re: Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 3:40 pm
by Benj
Hello

Here is an updated FCD file for the 16F72 device and an updated component code file.

The 18F6722 and the 18F8722 combined with an ADC component both seem to be compiling fine for me here.
Please can you go into the ADC components property page to allow the properties to be reloaded and try compiling again.

Re: Flowcode was unable to compile the flowchart's

Posted: Wed Jul 22, 2009 4:59 pm
by saschech@gmx.de
Hallo Benj

Where i found "ADC components property page"

In the ADC macro help i don`t found : "allow the properties to be reloaded "

Regards Wolfgang

Re: Flowcode was unable to compile the flowchart's

Posted: Thu Jul 23, 2009 8:33 am
by Benj
Hello Wolfgang
Where i found "ADC components property page"
Select the ADC component in the Flowcode simulation panel and then click on the "..." next to the Ext Properties menu item.

This should be all you need to do. Fingers crossed.

Also if you make a program from scratch for either the 18F6722 or the 18F8722 does the compilation work correctly?

Re: Flowcode was unable to compile the flowchart's

Posted: Thu Jul 23, 2009 9:08 am
by saschech@gmx.de
Hallo Benj

> you make a program from scratch ---- i dont understand ... you mean build a new one?

but :

If i build a new project with a 18f8722 or 18f6722 (change the type in the same object), than the compiler work ok
return code = 0

if i load the orginal downloadet "TEST4.fcf" i have a return code = 1 again......

Regards Wolfgang

Re: Flowcode was unable to compile the flowchart's

Posted: Thu Jul 23, 2009 12:03 pm
by Benj
if i load the orginal downloadet "TEST4.fcf" i have a return code = 1 again.....
1) Copy the 16F72.fcd FCD file into your FlowcodeV4/FCD directory.
2) Copy the PIC_ADC6.c file into your FlowcodeV4/Components directory.
3) Close Flowcode and then open the TEST4 file.
4) Open the proerties for the ADC component in your TEST4.fcf program.
5) Close the properties window, save the file and close Flowcode.
6) Open the program again and you should be up and running.

Re: Flowcode was unable to compile the flowchart's

Posted: Thu Jul 23, 2009 12:23 pm
by saschech@gmx.de
Hallo Benj

It is the same:

File name: C:\Users\sachs\Desktop\Neuer Ordner\TEST4.c
Generated by: Flowcode v4.0.0.53
Date: Thursday, July 23, 2009 14:42:05
Licence: Professional
Registered to: WOLFGANG SACHS


http://www.matrixmultimedia.com


Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic18.flowcode.exe -v -t PIC18F8722 "TEST4.c"

***************************************
Additional Debug info
sShortAppPath: C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\BOOSTC~1.EXE
sAppPath: C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\boostc.pic18.flowcode.exe
sAppFullSwitches: C:\PROGRA~1\MATRIX~1\FLOWCO~1\BoostC\BOOSTC~1.EXE -v -t PIC18F8722 "TEST4.c"
sWorkingDir: C:\Users\sachs\Desktop\Neuer Ordner
lengths = 79, 76, 35
***************************************

............
Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED
Regards Wolfgang


I

Re: Flowcode was unable to compile the flowchart's

Posted: Thu Jul 23, 2009 12:38 pm
by Benj
Hello Wolfgang

Sorry I saw you had already posted the file so I changed my last post.

Please can you try following that and see if there is any improvement.