Page 1 of 1

Pb with RS232 and 18F6390

Posted: Wed Apr 15, 2009 2:10 pm
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 !

Re: Pb with RS232 and 18F6390

Posted: Wed Apr 15, 2009 3:45 pm
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.