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
RS232 Soft Mode
Moderator: Benj
- 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
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.
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.
-
- Posts: 16
- Joined: Wed Nov 24, 2010 1:41 am
- Has thanked: 5 times
- Been thanked: 3 times
- Contact:
Re: RS232 Soft Mode
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.
- 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
Have you set the (Software) UART port properties?
As David said, if you could post your fcf file we could check it.
Rgds
As David said, if you could post your fcf file we could check it.
Rgds
-
- Posts: 16
- Joined: Wed Nov 24, 2010 1:41 am
- Has thanked: 5 times
- Been thanked: 3 times
- Contact:
Re: RS232 Soft Mode
Sorry, I forgot to upload my code yesterday
here we go
here we go
- Attachments
-
- Time Sharing.fcf
- (20.55 KiB) Downloaded 273 times
- 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
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
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 279 times