Compiler Error using RS232

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Compiler Error using RS232

Post by CSM2711 »

Hello,

I try to use the RS232 componentwith my PIC16F18313, but i get the following compiler Error:

366: tris |= (1 << (0));
^ (192) undefined identifier "tris"
(908) exit status = 1
(908) exit status = 1
rs232.JPG
rs232.JPG (18.01 KiB) Viewed 3257 times
Please tell me if I'm wrong, or if it's a general problem with the RS232.


Tankks Marcel
Attachments
BUGRS232.fcfx
(8.18 KiB) Downloaded 178 times

User avatar
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: Compiler Error using RS232

Post by Benj »

Hello,

The problem is because the RX pin is unconnected even though it is not being used it need to be connected.

Set the UseRx property to true, then connect the RX pin to a valid pin and then set the UseRx property back to false and it should compile correctly now.

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Compiler Error using RS232

Post by CSM2711 »

Thanks a lot, now it is compiled.
But I get no output on PIN RA0.....
No Data and no voltage (measured with oscilloscope)
Any one an idea????

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Compiler Error using RS232

Post by CSM2711 »

A short update:
sending a char via the UART (CAL) will work!
sending a number via UART component dosent work.

Maybe there is a problem with the component?

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Compiler Error using RS232

Post by CSM2711 »

Am I really the only one who has this problem?
Or is there only this problem with the PIC16F18313?

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: Compiler Error using RS232

Post by LeighM »

Hi
Please try the updated CAL file, to go into C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC
Auto update will be updated soon.
Thanks for spotting this.
Attachments
PIC_CAL_UART.c
(36.05 KiB) Downloaded 172 times

Post Reply