Pb with RS232 and 18F6390

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

Moderators: Benj, Mods

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

Pb with RS232 and 18F6390

Post by WalkOver »

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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Pb with RS232 and 18F6390

Post by Benj »

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.

Post Reply