Page 1 of 1
freq_counter
Posted: Sat Nov 28, 2009 3:32 pm
by franky
hi,
I'm making some tests whit your example "freq_counter" whit flowcode v3, but if I set Ecio40 I have an error when I try to compile to hex..
can you help me?
best regards!
Re: freq_counter
Posted: Wed Dec 02, 2009 11:25 am
by Steve
Please supply the FCF, C and MSG.TXT files and I will have a look.
Re: freq_counter
Posted: Fri Dec 04, 2009 9:32 am
by franky
HI Steve!
this is the text of the message file; i've tried to compile the example file "freq_counter" from your site
thank you and best regards!
"File name: C:\Users\FRANKY\Documents\_LABORATORIO\_MOTO ACQUA\_CONTAGIRI\Freq_Counter.c
Generated by: Flowcode v3.6.11.53
Date: Friday, December 04, 2009 10:35:28
Licence: Professional
Registered to: francesco capuzzo
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic18.flowcode.exe -v -t PIC18F4455 "Freq_Counter.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
Freq_Counter.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\Users\FRANKY\Documents\_LABORATORIO\_MOTO ACQUA\_CONTAGIRI\Freq_Counter.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC18F4455 -la -c2 -o Freq_Counter.pp -v -d _BOOSTC -d _PIC18
..........
C:\Users\FRANKY\Documents\_LABORATORIO\_MOTO ACQUA\_CONTAGIRI\Freq_Counter.c(404:2): error: unknown identifier 'tmr0'
C:\Users\FRANKY\Documents\_LABORATORIO\_MOTO ACQUA\_CONTAGIRI\Freq_Counter.c(404:2): error: invalid operand 'tmr0'
C:\Users\FRANKY\Documents\_LABORATORIO\_MOTO ACQUA\_CONTAGIRI\Freq_Counter.c(404:7): error: failed to generate expression
Freq_Counter.c success
failure
Return code = 1
Flowcode non Γ¨ in grado di compilare i codici C per via dei seguenti errori.
. Se la flowchart contiene codici C riesaminatela attentamente. Se no contattate il Supporto tecnico.
FINISHED
Re: freq_counter
Posted: Fri Dec 04, 2009 10:58 am
by Steve
I think this is a known issue that some versions of Flowcode use "tmr0" instead of "tmr0l".
Also, I can't find the FCF file - please post it here, along with the generated C code file and I will be able to help.
Re: freq_counter
Posted: Fri Dec 04, 2009 11:13 am
by franky
Hi Steve!,
please find the attached file.
best regards!
Re: freq_counter
Posted: Fri Dec 04, 2009 11:20 am
by Steve
In the "TMR_INT" macro, change the final C code icon from this:
to this:
Re: freq_counter
Posted: Fri Dec 04, 2009 12:30 pm
by franky
I have tried but nothing change..
Re: freq_counter
Posted: Fri Dec 04, 2009 1:13 pm
by Benj
Hi Franky
If you go into the View Menu and select Supplementary code and then add the following line to the defines window then your program should compile correctly.
#define tmr0 tmr0l
This line of code simply states to use the tmr0l register included on the ECIO device whenever the standard tmr0 register is referenced in the code.
Re: freq_counter
Posted: Fri Dec 04, 2009 2:34 pm
by Steve
franky wrote:I have tried but nothing change..
Note that it is the letter "l" and not the number "1" in "tmr0l = 0x00;".
Re: freq_counter
Posted: Fri Dec 04, 2009 3:21 pm
by franky
Hi Steve and Hi Benj
I'll go to try
thank you very much!!!