Problems with flowcode 5 and RS232 comms Ports
Posted: Thu Feb 09, 2012 3:50 pm
Hi Guys,
Processor Pic18f25k22
Flowcode V5.0
I have a problem relating to the RS232 comms ports and get errors when compiling the Code.
My code requires that I use two RS232 communication ports, I had written an extensive flowcode chart but when attempting to compile I received errors relating to the use of both ports, I then created a simple flowcode chart to test the use of using two communications ports together, I would like to add that my project will require one RS232 port to run at 19200 baud and the other RS232 port to run at 9600 baud.
The simple test flowcode chart:
However in my tests I have compiled with both ports at 19200 Baud on test one and get 1 error reported on the compile which is:
test.c(426): Illegal redefinition of symbol: MX_UART_RTS_PORT_2
But if I change to 19200 Baud on port 1 and 9600 Baud on port 2 I then get the following errors reported on the compile which are as follows:
test.c(426): Illegal redefinition of symbol: MX_UART_RTS_PORT_2
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(162): Illegal redefinition of symbol: MX_HARD_BAUD_2
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(163): Illegal redefinition of symbol: MX_HARD_SLOW_2
Both ports are hardware RS232 communication ports comm 1 and comm 2.
I have added the test file created for this test to this post along with the screen shots to help find the problem.
Could you guys please take a quick look at this problem as this stops me moving forward at the moment with the project?
Kind regards
Aj
Processor Pic18f25k22
Flowcode V5.0
I have a problem relating to the RS232 comms ports and get errors when compiling the Code.
My code requires that I use two RS232 communication ports, I had written an extensive flowcode chart but when attempting to compile I received errors relating to the use of both ports, I then created a simple flowcode chart to test the use of using two communications ports together, I would like to add that my project will require one RS232 port to run at 19200 baud and the other RS232 port to run at 9600 baud.
The simple test flowcode chart:
However in my tests I have compiled with both ports at 19200 Baud on test one and get 1 error reported on the compile which is:
test.c(426): Illegal redefinition of symbol: MX_UART_RTS_PORT_2
But if I change to 19200 Baud on port 1 and 9600 Baud on port 2 I then get the following errors reported on the compile which are as follows:
test.c(426): Illegal redefinition of symbol: MX_UART_RTS_PORT_2
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(162): Illegal redefinition of symbol: MX_HARD_BAUD_2
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(163): Illegal redefinition of symbol: MX_HARD_SLOW_2
Both ports are hardware RS232 communication ports comm 1 and comm 2.
I have added the test file created for this test to this post along with the screen shots to help find the problem.
Could you guys please take a quick look at this problem as this stops me moving forward at the moment with the project?
Kind regards
Aj