TCP Component and 18F4550

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
beambase
Posts: 94
Joined: Wed Jul 29, 2009 5:15 pm
Has thanked: 6 times
Been thanked: 8 times

TCP Component and 18F4550

Post 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

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: TCP Component and 18F4550

Post 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

beambase
Posts: 94
Joined: Wed Jul 29, 2009 5:15 pm
Has thanked: 6 times
Been thanked: 8 times

Re: TCP Component and 18F4550

Post 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.

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: TCP Component and 18F4550

Post 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.

Post Reply