Page 1 of 1

error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 12:53 pm
by azevedo
Hello everyone!
I have a problem trying to compile a project that I have been working for some time.
I get the following message from the compiler:

C: \ PROGRA ~ 2 \ FLOWCO ~ 1 \ pic \ include \ pic18f26k22.h:
  8244: extern volatile unsigned char TRISE @ 0xF96;
(985) qualifiers redeclared ^
^ (1098) conflicting declarations for variable "TRISE" (fat gps liksprite 18f26k22 _v7.c: 31)
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C: \ Program Files (x86) \ Flowcode v8 \ pic \ batch \ pic_xc8_comp.bat reported error code 1

Autoclose turned off

 if someone could help me I would be very grateful

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 2:12 pm
by medelec35
Hi azevedo,
Does this post help?

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 2:41 pm
by medelec35
Hmm,
Without following the steps from the above post, After adding an input Flowchart compiles for me ok.
Do you have a test flowchart you can post which causes the errors?

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 6:32 pm
by azevedo
hello medelec35!
I am very grateful for your quick response!
I think maybe it would be better in private for me to send the full file for you to test. As I do not have much experience here I ask you if it is possible?
thank you very much !

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 6:34 pm
by azevedo
I did the experiment according to the post you mentioned but it didn't work

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 8:44 pm
by azevedo
I tried changing the target to pic18f46k22 and compiling correctly!
then I tried to do
a simple flowchart but with 18f26k22 and again not compiled and gave the same error.
I'm remembering that a couple of days ago when opening the flowcode there was an update but I no longer remember what it was .....

Re: error compiling on pic18f26k22

Posted: Sat Nov 23, 2019 9:18 pm
by medelec35
The flowchart you posted compiles for me ok.
Can you select Help, about flowcode and state what version you have?
This is the latest version:
Latest Flowcode.png
(52.41 KiB) Downloaded 1190 times
Have you tried updating all?
With your flowchart loaded, select Help, Check for updates.
Change files in use to Full database, then select download.

Re: error compiling on pic18f26k22

Posted: Sun Nov 24, 2019 9:21 pm
by azevedo
hello martin! thanks for answering !
sorry for the delay of the answer I was out and only now I was able to return to the subject.
I am currently downloading the entire database but I noticed that pic18f26k22 is not in this same update ....
I will restart and see if it compiles .....

Re: error compiling on pic18f26k22

Posted: Sun Nov 24, 2019 9:23 pm
by azevedo
negative !!
still giving the same mistake .....

C: \ PROGRA ~ 2 \ FLOWCO ~ 1 \ pic \ include \ pic18f26k22.h:
  8244: extern volatile unsigned char TRISE @ 0xF96;
(985) qualifiers redeclared ^
^ (1098) conflicting declarations for variable "TRISE" (Flowcode1.c: 31)
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

C: \ Program Files (x86) \ Flowcode v8 \ pic \ batch \ pic_xc8_comp.bat reported error code 1

Autoclose turned off


FINISHED

Re: error compiling on pic18f26k22

Posted: Sun Nov 24, 2019 9:28 pm
by azevedo
This is the version I am using:

Re: error compiling on pic18f26k22

Posted: Sun Nov 24, 2019 10:04 pm
by medelec35
I would suggest you uninstall current version, download and install latest version.
At least if we run the exact same version, then that's one less variable removed.
Can you also post all the compiler message?

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:15 am
by LeighM
Ah, looks like a recent update with a workaround for the missing TRISE issue has been applied to too many devices.
Some Microchip headers have the definition, others don't :roll:
Until we get this fixed roll back the last update to 18F26K22.fcdx
Or drop the attached into …
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:20 am
by seokgi
I downloaded and applied FCDX but still got the same error.

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:26 am
by LeighM
Did you put the file in ...
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC
The folder is usually hidden
And re-start Flowcode?

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:29 am
by seokgi
It was solved by applying the FC8 version above.

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 10:02 am
by medelec35
LeighM wrote:Ah, looks like a recent update with a workaround for the missing TRISE issue has been applied to too many devices.
Thanks Leigh,
that clears up my confusion.

I had not updated to latest FCD (when I thought I had), prior to testing flowchart.

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:09 pm
by azevedo
Hello people !
I want to thank you because I made the steps described above and already compiles ok!
thank you martin, thank you leighm:

Re: error compiling on pic18f26k22

Posted: Mon Nov 25, 2019 9:14 pm
by azevedo
I noticed when opening the flowcode that there were updates available and one of them was for pic18f26k22.
Whatever matters, it is already working again! :wink: :wink:

Re: error compiling on pic18f26k22

Posted: Mon Dec 02, 2019 3:54 pm
by GotGasSA
I am having the same issue since updating, i am using a PIC18f25K22

^ (1098) conflicting declarations for variable "TRISE" (test.c:29)

I even tried creating a new project with nothing else than a loop, and it gave me the same issue.

I am using the XC8 PRO compiler.

Re: error compiling on pic18f26k22

Posted: Mon Dec 02, 2019 4:31 pm
by LeighM
Hi,
Until we get this fixed, please roll back to previous version ...
roll-back.png
(13.59 KiB) Downloaded 1006 times