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
TCP Component and 18F4550
Moderator: Benj
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel