I added the RS232 element to my flowcode with a simple receive and transmit call.
Compiling to HEX gives the following errormessages ( I upgraded my boxed Flowcode V3 to V.3.2.2 update from the Matrix-site.
Comradio.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F877A -la -c2 -o Comradio.pp -v -d _BOOSTC -d _PIC16
..........................................
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1436:10): error: unknown identifier 'FC_IRDA_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1436:10): error: invalid operand 'FC_IRDA_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1436:8): error: failed to generate expression
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1437:10): error: unknown identifier 'FC_IRDA_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1437:10): error: invalid operand 'FC_IRDA_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1437:8): error: failed to generate expression
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1446:10): error: unknown identifier 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1446:10): error: invalid operand 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1446:8): error: failed to generate expression
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1447:10): error: unknown identifier 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1447:10): error: invalid operand 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1447:8): error: failed to generate expression
Comradio.c success
failure
Return code = 1
Compiling error RS232 element
- 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: Compiling error RS232 element
Hello
Do you have the IrDA and RS232 components in your program?
Use the View -> Attached Components menu in Flowcode to see any minimised components.
The IrDA and the RS232 both use the UART on the Microcontroller so this is probably causing the conflict and compilation problems.
Do you have the IrDA and RS232 components in your program?
Use the View -> Attached Components menu in Flowcode to see any minimised components.
The IrDA and the RS232 both use the UART on the Microcontroller so this is probably causing the conflict and compilation problems.
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
Re: Compiling error RS232 element
The most recent errors are (after many experiments):
The problem is,I think, that initialisation of %h and %i parameters in the automatically? included C_code "C:\Program Files\Matrix Multimedia\Flowcode V3\components\RS232_Code.c" is not done.
They initialise behavior and Baudrate.
was
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F877A "Comradio.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 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: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
Comradio.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F877A -la -c2 -o Comradio.pp -v -d _BOOSTC -d _PIC16
.......................................................
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:10): error: unknown identifier 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:10): error: invalid operand 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:8): error: failed to generate expression
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:10): error: unknown identifier 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:10): error: invalid operand 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:8): error: failed to generate expression
Comradio.c success
failure
Return code = 1
Flowcode kan de C-code niet vertalen vanwege de volgende fout:
Als de flowchart C-code bevat, controleer die dan zorgvuldig. Als de flowchart geen C-code bevat of als die gegarandeerd vrij is van fouten, neem dan contact op met de technische ondersteuning.
FINISHED
The problem is,I think, that initialisation of %h and %i parameters in the automatically? included C_code "C:\Program Files\Matrix Multimedia\Flowcode V3\components\RS232_Code.c" is not done.
They initialise behavior and Baudrate.
was
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F877A "Comradio.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 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: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
Comradio.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F877A -la -c2 -o Comradio.pp -v -d _BOOSTC -d _PIC16
.......................................................
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:10): error: unknown identifier 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:10): error: invalid operand 'FC_RS232_TXSTA_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1854:8): error: failed to generate expression
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:10): error: unknown identifier 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:10): error: invalid operand 'FC_RS232_SPBRG_VAL'
D:\Siminstrumenten\Flowcode-projects\Comradio\Comradio.c(1855:8): error: failed to generate expression
Comradio.c success
failure
Return code = 1
Flowcode kan de C-code niet vertalen vanwege de volgende fout:
Als de flowchart C-code bevat, controleer die dan zorgvuldig. Als de flowchart geen C-code bevat of als die gegarandeerd vrij is van fouten, neem dan contact op met de technische ondersteuning.
FINISHED
- 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: Compiling error RS232 element
Hello
Please can you email your project FCF file and C file to ben@matrixmultimedia.co.uk and I will take a look at the problem for you.
Please can you email your project FCF file and C file to ben@matrixmultimedia.co.uk and I will take a look at the problem for you.
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
- 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: Compiling error RS232 element
The problem was caused by the RS232 component and the IrDA component being included into the same program.
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