Page 1 of 1

TCP Component and 18F4550

Posted: Mon Dec 28, 2009 6:20 pm
by beambase
Hi
When I am trying to use the TCP_IP component with a 18F4550 I get the following errors on compiling.

RECV_HTMLFC34550.c(715:19): error: unknown identifier 'TMR0'
RECV_HTMLFC34550.c(715:19): error: invalid operand 'TMR0'
RECV_HTMLFC34550.c(715:17): error: failed to generate expression
RECV_HTMLFC34550.c(716:20): error: unknown identifier 'TMR0'
RECV_HTMLFC34550.c(716:19): error: failed to generate expression
RECV_HTMLFC34550.c(716:19): error: invalid operand '~TMR0'
RECV_HTMLFC34550.c(716:17): error: failed to generate expression

I found an old thread about adding #define TMR0 TMR0L as Supplementary Code but that doesn't help. It also said that it should get fixed to V4 but apparently not.

Any ideas?

regards

Bjorn

Re: TCP Component and 18F4550

Posted: Wed Dec 30, 2009 11:54 am
by Benj
Hello Bjorn

I will make a note of this for the next release.

Adding the following to the defines section of the supplementary code window should allow your code to compile.

#define TMR0 tmr0l

Re: TCP Component and 18F4550

Posted: Fri Jan 01, 2010 10:01 am
by beambase
Happy New Year
I have tried this. It works in Flowcode 3 but not in Flowcode 4. When I try it in Flowcode 4 I get the same eroors and are not able to compile.

Re: TCP Component and 18F4550

Posted: Mon Jan 04, 2010 10:16 am
by Benj
Hello

Ok I have reported this bug and hopefully we should get it fixed for the next update release.

You can work around the problem by selecting the TCP component in the panel, Clicking the custom code button, Select the [Defines] function and then click edit code and add the following to the top of the code section.

#define TMR0 tmr0l

Then click ok and close to exit the customization windows. Compilation should now work correctly.