Hi i have a compiling error
CHIP: PIC18F26J53
FLOWCODE 5.0 VERSION 5.4.0.0
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(521): error: left operand must be l-value
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(521:13): error: failed to generate expression
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(522): error: left operand must be l-value
C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c(522:13): error: failed to generate expression
What should i do to fix this because i urgently need to use UART2?
I am also trying to use the Peripheral Pin Select feature
Thank you
1826j53 UART2 PROBLEM
Moderator: Benj
-
- Posts: 18
- Joined: Wed Jan 23, 2013 7:07 pm
- Has thanked: 6 times
- Been thanked: 2 times
- 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: 1826j53 UART2 PROBLEM
Hello,
What pins would you like the UART2 connected to and I will see if I can fix the file to route to these pins for you.
What pins would you like the UART2 connected to and I will see if I can fix the file to route to these pins for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 18
- Joined: Wed Jan 23, 2013 7:07 pm
- Has thanked: 6 times
- Been thanked: 2 times
- 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: 1826j53 UART2 PROBLEM
Hello,
Can RX2 be anything for now or do you have a free I/O pin in mind I can assign it to?
Can RX2 be anything for now or do you have a free I/O pin in mind I can assign it to?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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: 1826j53 UART2 PROBLEM
Hello,
I have re-routed TX2 to RP1 and RX2 to RP0 in this CAL file.
Copy the file to your "Flowcode/v5/CAL/PIC" folder and the compilation should then go through correctly.
Here are the lines of code that control the remapping, line number 525 in the C file.
I have re-routed TX2 to RP1 and RX2 to RP0 in this CAL file.
Copy the file to your "Flowcode/v5/CAL/PIC" folder and the compilation should then go through correctly.
Here are the lines of code that control the remapping, line number 525 in the C file.
Code: Select all
RPOR1 = 6; //TX2 - RP1 - RA1
RPINR16 = 0; //RX2 - RP0 - RA0
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 18
- Joined: Wed Jan 23, 2013 7:07 pm
- Has thanked: 6 times
- Been thanked: 2 times
Re: 1826j53 UART2 PROBLEM
Hi Ben
I have tryed what you said, copied the file into my folder, and compiled again using the second UART, and the same problem appears.
I have posted my program, to see if there is something i am doing wrong in my code.
Thanks.
I have tryed what you said, copied the file into my folder, and compiled again using the second UART, and the same problem appears.
I have posted my program, to see if there is something i am doing wrong in my code.
Thanks.
- Attachments
-
- flow_CCP4_polling.fcf
- (15.91 KiB) Downloaded 251 times
- 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: 1826j53 UART2 PROBLEM
Ah sorry about that, I had capitalised the register names and they should be in lower case,
This one should work correctly.
This one should work correctly.
- Attachments
-
- PIC_CAL_UART.c
- (25.86 KiB) Downloaded 267 times
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 18
- Joined: Wed Jan 23, 2013 7:07 pm
- Has thanked: 6 times
- Been thanked: 2 times