Page 1 of 1

RS232 Soft Mode

Posted: Sun Apr 21, 2013 4:54 am
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

Re: RS232 Soft Mode

Posted: Mon Apr 22, 2013 11:40 am
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.

Re: RS232 Soft Mode

Posted: Tue Apr 23, 2013 10:14 am
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.

Re: RS232 Soft Mode

Posted: Tue Apr 23, 2013 1:43 pm
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

Re: RS232 Soft Mode

Posted: Wed Apr 24, 2013 3:35 am
by gumilard
Sorry, I forgot to upload my code yesterday :lol:

here we go :D

Re: RS232 Soft Mode

Posted: Wed Apr 24, 2013 8:45 am
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

Re: RS232 Soft Mode

Posted: Wed Apr 24, 2013 11:00 am
by gumilard
should be work tomorrow :D thanks.