Pb with RS232 and 18F6390

Forum for problems or queries regarding the Flowcode application and compiler usage.

Moderators: Benj, Mods

WalkOver
Posts: 65
Joined: Fri Nov 23, 2007 11:24 pm
Contact:

Pb with RS232 and 18F6390

Postby WalkOver » Wed Apr 15, 2009 2:10 pm

Hello !

I have a pb when I want to compile a program who implement RS232 on the 18F6390.

Flowcode tells me that :


C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(515:10): error: unknown identifier 'rcreg'
C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(515:10): error: invalid operand 'rcreg'
C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(515:8): error: failed to generate expression
C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(529:11): error: unknown identifier 'rcreg'
C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(529:11): error: invalid operand 'rcreg'
C:\Documents and Settings\Mathieu\Bureau\test 18f6390\Flowcode1.c(529:9): error: failed to generate expression
Flowcode1.c success

What's the problem ??

Thank you !

User avatar
Benj
Matrix Staff
Posts: 14150
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4078 times
Contact:

Re: Pb with RS232 and 18F6390

Postby Benj » Wed Apr 15, 2009 3:45 pm

Hello

Ok the problem is caused by the target device having more then one hardware UART.

You can follow these steps to get your program to compile.

1) Click on Edit -> Supplementary code.
2) Paste the following line into the definitions box.

#define rcreg rcreg1

3) Click ok and save, your program should now compile correctly.