RS232 Soft Mode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
gumilard
Posts: 16
Joined: Wed Nov 24, 2010 1:41 am
Has thanked: 5 times
Been thanked: 3 times
Contact:

RS232 Soft Mode

Post by gumilard »

HI..

Not sure this topic has ever asked before. I want to using RS232 soft mode simultanously with Hardware Uart with PIC16F877A@20Mhz. The simulation is good. But whenever I build into hex file, the error message appears. btw I use the Hardware UART to moderated the GPS/GSM module as I need the reliability and Uart Software mode to only Transmit some of the Information to the network.
here's some of the error message:
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(689:16): error: unknown identifier 'port0'
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(689:15): error: invalid operand 'port0'
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(689:22): error: failed to generated expression
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(689:22): error: invalid operand '&'
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(689:11): error: failed to generated expression

hope can be solved.

thx in advice

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: RS232 Soft Mode

Post by DavidA »

Hello,

Please ensure that you are using the latest version of Flowcode (v5.5)

Does the error occur only when using both hardware and software mode UARTs? Or do they work separately?

Also please post your fcf file so we can see the error in action.

gumilard
Posts: 16
Joined: Wed Nov 24, 2010 1:41 am
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: RS232 Soft Mode

Post by gumilard »

I'm using fcv5.5.2.1 is it updated? error occur when I compile them into hex file. Yes I hope the UART can work separately because I configure the HW UART to receive gps information then I use the software uart to send some data to another pic micro.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RS232 Soft Mode

Post by LeighM »

Have you set the (Software) UART port properties?
As David said, if you could post your fcf file we could check it.
Rgds

gumilard
Posts: 16
Joined: Wed Nov 24, 2010 1:41 am
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: RS232 Soft Mode

Post by gumilard »

Sorry, I forgot to upload my code yesterday :lol:

here we go :D
Attachments
Time Sharing.fcf
(20.55 KiB) Downloaded 269 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: RS232 Soft Mode

Post by LeighM »

Hi
Thanks for uploading your code.
Yep. You have found a bug, thanks! :O)
Please replace PIC_CAL_UART.c with the fixed one I have attached.
in your installation directory …
C:\Program Files\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c

Regards,
Leigh
Attachments
PIC_CAL_UART.c
(25.84 KiB) Downloaded 277 times

gumilard
Posts: 16
Joined: Wed Nov 24, 2010 1:41 am
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: RS232 Soft Mode

Post by gumilard »

should be work tomorrow :D thanks.

Post Reply