freq_counter
freq_counter
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!
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
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
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
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: freq_counter
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.
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
Hi Steve!,
please find the attached file.
best regards!
please find the attached file.
best regards!
- Attachments
-
- Freq_Counter.c
- (9.57 KiB) Downloaded 365 times
-
- Freq_Counter.fcf
- (8.5 KiB) Downloaded 365 times
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: freq_counter
In the "TMR_INT" macro, change the final C code icon from this:
to this:
Code: Select all
tmr0 = 0x00;
Code: Select all
tmr0l = 0x00;
- 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: freq_counter
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel