Page 1 of 1
Compiler Error using RS232
Posted: Wed Nov 21, 2018 11:07 am
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 (18.01 KiB) Viewed 3618 times
Please tell me if I'm wrong, or if it's a general problem with the RS232.
Tankks Marcel
Re: Compiler Error using RS232
Posted: Wed Nov 21, 2018 11:44 am
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.
Re: Compiler Error using RS232
Posted: Wed Nov 21, 2018 12:26 pm
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????
Re: Compiler Error using RS232
Posted: Wed Nov 21, 2018 2:17 pm
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?
Re: Compiler Error using RS232
Posted: Fri Nov 30, 2018 10:27 am
by CSM2711
Am I really the only one who has this problem?
Or is there only this problem with the PIC16F18313?
Re: Compiler Error using RS232
Posted: Fri Nov 30, 2018 10:50 am
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.