RS232 component and 18F25J50....failure

Moderator: Benj

Post Reply
Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times

RS232 component and 18F25J50....failure

Post by Mathy »

Hi !

I have a pb with a 18F25J50 ( and probably all the PIC18F46J50 family ).

It's impossible to add a RS232 component to this µC ( I have a problem with 2 RS232 and only one too )

You can see the message error :

\Flowcode1.c(310:4): error: unknown identifier 'txsta'
\Flowcode1.c(310:4): error: invalid operand 'txsta'
\Flowcode1.c(310:11): error: failed to generate expression
\Flowcode1.c(311:11): error: unknown identifier 'pir1'
\Flowcode1.c(311:11): error: invalid operand 'pir1'
\Flowcode1.c(311:17): error: failed to generate expression
\Flowcode1.c(311:17): error: invalid operand '& '
\Flowcode1.c(311:35): error: failed to generate expression
\Flowcode1.c(311:2): error: error in 'while' loop statement
\Flowcode1.c(325:2): error: unknown identifier 'txreg'
\Flowcode1.c(325:2): error: invalid operand 'txreg'
\Flowcode1.c(325:8): error: failed to generate expression
\Flowcode1.c(428:4): error: unknown identifier 'rcsta'
\Flowcode1.c(428:4): error: invalid operand 'rcsta'
\Flowcode1.c(428:11): error: failed to generate expression
\Flowcode1.c(475:15): error: unknown identifier 'pir1'
\Flowcode1.c(475:15): error: invalid operand 'pir1'
\Flowcode1.c(475:21): error: failed to generate expression
\Flowcode1.c(475:21): error: invalid operand '& '
\Flowcode1.c(475:11): error: failed to generate expression
\Flowcode1.c(492:15): error: unknown identifier 'rcsta'
\Flowcode1.c(492:15): error: invalid operand 'rcsta'
\Flowcode1.c(492:22): error: failed to generate expression
\Flowcode1.c(492:22): error: invalid operand '& '
\Flowcode1.c(492:11): error: failed to generate expression
\Flowcode1.c(502:10): error: unknown identifier 'rcreg'
\Flowcode1.c(502:10): error: invalid operand 'rcreg'
\Flowcode1.c(502:8): error: failed to generate expression
\Flowcode1.c(525:15): error: unknown identifier 'rcsta'
\Flowcode1.c(525:15): error: invalid operand 'rcsta'
\Flowcode1.c(525:22): error: failed to generate expression
\Flowcode1.c(525:22): error: invalid operand '& '
\Flowcode1.c(525:11): error: failed to generate expression
\Flowcode1.c(536:4): error: unknown identifier 'rcsta'
\Flowcode1.c(536:4): error: invalid operand 'rcsta'
\Flowcode1.c(536:11): error: failed to generate expression
\Flowcode1.c(537:4): error: unknown identifier 'rcsta'
\Flowcode1.c(537:4): error: invalid operand 'rcsta'
\Flowcode1.c(537:11): error: failed to generate expression
\Flowcode1.c(569:20): error: unknown identifier 'rcreg'
\Flowcode1.c(569:20): error: invalid operand 'rcreg'
\Flowcode1.c(569:18): error: failed to generate expression
\Flowcode1.c(569:18): error: invalid operand '| '
\Flowcode1.c(569:9): error: failed to generate expression
\Flowcode1.c(753:4): error: unknown identifier 'txsta2'
\Flowcode1.c(753:4): error: invalid operand 'txsta2'
\Flowcode1.c(753:12): error: failed to generate expression
\Flowcode1.c(754:11): error: unknown identifier 'pir3'
\Flowcode1.c(754:11): error: invalid operand 'pir3'
\Flowcode1.c(754:17): error: failed to generate expression
\Flowcode1.c(754:17): error: invalid operand '& '
\Flowcode1.c(754:36): error: failed to generate expression
\Flowcode1.c(754:2): error: error in 'while' loop statement
\Flowcode1.c(768:2): error: unknown identifier 'txreg2'
\Flowcode1.c(768:2): error: invalid operand 'txreg2'
\Flowcode1.c(768:9): error: failed to generate expression
\Flowcode1.c(845:4): error: unknown identifier 'rcsta2'
\Flowcode1.c(845:4): error: invalid operand 'rcsta2'
\Flowcode1.c(845:12): error: failed to generate expression
\Flowcode1.c(894:15): error: unknown identifier 'pir3'
\Flowcode1.c(894:15): error: invalid operand 'pir3'
\Flowcode1.c(894:21): error: failed to generate expression
\Flowcode1.c(894:21): error: invalid operand '& '
\Flowcode1.c(894:11): error: failed to generate expression
\Flowcode1.c(909:15): error: unknown identifier 'rcsta2'
\Flowcode1.c(909:15): error: invalid operand 'rcsta2'
\Flowcode1.c(909:23): error: failed to generate expression
\Flowcode1.c(909:23): error: invalid operand '& '
\Flowcode1.c(909:11): error: failed to generate expression
\Flowcode1.c(919:10): error: unknown identifier 'rcreg2'
\Flowcode1.c(919:10): error: invalid operand 'rcreg2'
\Flowcode1.c(919:8): error: failed to generate expression
\Flowcode1.c(942:15): error: unknown identifier 'rcsta2'
\Flowcode1.c(942:15): error: invalid operand 'rcsta2'
\Flowcode1.c(942:23): error: failed to generate expression
\Flowcode1.c(942:23): error: invalid operand '& '
\Flowcode1.c(942:11): error: failed to generate expression
\Flowcode1.c(954:4): error: unknown identifier 'rcsta2'
\Flowcode1.c(954:4): error: invalid operand 'rcsta2'
\Flowcode1.c(954:12): error: failed to generate expression
\Flowcode1.c(955:4): error: unknown identifier 'rcsta2'
\Flowcode1.c(955:4): error: invalid operand 'rcsta2'
\Flowcode1.c(955:12): error: failed to generate expression
\Flowcode1.c(992:20): error: unknown identifier 'rcreg2'
\Flowcode1.c(992:20): error: invalid operand 'rcreg2'
\Flowcode1.c(992:18): error: failed to generate expression
\Flowcode1.c(992:18): error: invalid operand '| '
\Flowcode1.c(992:9): error: failed to generate expression
\Flowcode1.c(1084:2): error: unknown identifier 'ancon0'
\Flowcode1.c(1084:2): error: invalid operand 'ancon0'
\Flowcode1.c(1084:9): error: failed to generate expression
\Flowcode1.c(1085:1): error: unknown identifier 'ancon1'
\Flowcode1.c(1085:1): error: invalid operand 'ancon1'
\Flowcode1.c(1085:8): error: failed to generate expression
\Flowcode1.c(1095:2): error: unknown identifier 'txsta'
\Flowcode1.c(1095:2): error: invalid operand 'txsta'
\Flowcode1.c(1095:8): error: failed to generate expression
\Flowcode1.c(1096:2): error: unknown identifier 'spbrg'
\Flowcode1.c(1096:2): error: invalid operand 'spbrg'
\Flowcode1.c(1096:8): error: failed to generate expression
\Flowcode1.c(1097:2): error: unknown identifier 'rcsta'
\Flowcode1.c(1097:2): error: invalid operand 'rcsta'
\Flowcode1.c(1097:8): error: failed to generate expression
\Flowcode1.c(1101:4): error: unknown identifier 'txsta'
\Flowcode1.c(1101:4): error: invalid operand 'txsta'
\Flowcode1.c(1101:11): error: failed to generate expression
\Flowcode1.c(1102:4): error: unknown identifier 'rcsta'
\Flowcode1.c(1102:4): error: invalid operand 'rcsta'
\Flowcode1.c(1102:11): error: failed to generate expression
\Flowcode1.c(1105:4): error: unknown identifier 'rcsta'
\Flowcode1.c(1105:4): error: invalid operand 'rcsta'
\Flowcode1.c(1105:11): error: failed to generate expression
\Flowcode1.c(1152:2): error: unknown identifier 'txsta2'
\Flowcode1.c(1152:2): error: invalid operand 'txsta2'
\Flowcode1.c(1152:9): error: failed to generate expression
\Flowcode1.c(1153:2): error: unknown identifier 'spbrg2'
\Flowcode1.c(1153:2): error: invalid operand 'spbrg2'
\Flowcode1.c(1153:9): error: failed to generate expression
\Flowcode1.c(1154:2): error: unknown identifier 'rcsta2'
\Flowcode1.c(1154:2): error: invalid operand 'rcsta2'
\Flowcode1.c(1154:9): error: failed to generate expression
\Flowcode1.c(1158:4): error: unknown identifier 'txsta2'
\Flowcode1.c(1158:4): error: invalid operand 'txsta2'
\Flowcode1.c(1158:12): error: failed to generate expression
\Flowcode1.c(1159:4): error: unknown identifier 'rcsta2'
\Flowcode1.c(1159:4): error: invalid operand 'rcsta2'
\Flowcode1.c(1159:12): error: failed to generate expression
\Flowcode1.c(1162:4): error: unknown identifier 'rcsta2'
\Flowcode1.c(1162:4): error: invalid operand 'rcsta2'
\Flowcode1.c(1162:12): error: failed to generate expression
Flowcode1.c success

What can I do to resolve this ?

Thank you for your help.

Mathy

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: RS232 component and 18F25J50....failure

Post by Benj »

Hello Mathy,

Are you using the HiTech compiler or the default BoostC compiler? I don't think this device is supported in the default BoostC compiler.

You can find details of how to switch your compiler here.
http://www.matrixmultimedia.com/mmforum ... =26&t=6812

Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times

Re: RS232 component and 18F25J50....failure

Post by Mathy »

Thank you again :D

Ok, I understand, I use the default BoostC compiler.

I will try with the free Hitech compiler :)

Thank you !

Post Reply