Page 1 of 1

several problems with PIC18F25J50 the second

Posted: Wed Aug 18, 2010 2:16 pm
by HjH
Hi
I have a PIC18F25J50 controller.

1. I design a RS232 Programm. If I build the programm I get folowing warning.
Flowcode3.c: main()
733: FCI_CONCATENATE("Test, ",6,"",0,FCV_M_SEND,20);
^ (359) nicht erlaubte Umwandlung between pointer types (warning)
^ (359) nicht erlaubte Umwandlung between pointer types (warning)
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.63PL3

This warning concatenate the variable with a wrong string

2. How I can change the C-code and build the programm without that flowcode overwrite the C-code

Can you help me.

Re: several problems with PIC18F25J50 the second

Posted: Wed Aug 25, 2010 9:38 am
by Benj
I have answered you elsewhere about having commas inside of strings.

Instead of using
"Test, "

Try instead using
"Test\, "

If this does not work then you must place "Test, " into a string variable and then call the string variable from the concatenate parameters input.

str = "Test, "

FCI_CONCATENATE(str, 6,"",0,FCV_M_SEND,20);