error compiling on pic18f26k22

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

error compiling on pic18f26k22

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: error compiling on pic18f26k22

Post by medelec35 »

Hi azevedo,
Does this post help?
Martin

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: error compiling on pic18f26k22

Post 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?
Martin

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

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

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

Post by azevedo »

I did the experiment according to the post you mentioned but it didn't work

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

Post 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 .....
Attachments
Flowcode1.fcfx
(8.74 KiB) Downloaded 158 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: error compiling on pic18f26k22

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

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

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

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

Post 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

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

Post by azevedo »

This is the version I am using:
Attachments
versao flowcode.png
(269.5 KiB) Downloaded 1171 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: error compiling on pic18f26k22

Post 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?
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: error compiling on pic18f26k22

Post 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
Attachments
18F26K22.fcdx
(39.24 KiB) Downloaded 124 times

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: error compiling on pic18f26k22

Post by seokgi »

I downloaded and applied FCDX but still got the same error.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: error compiling on pic18f26k22

Post by LeighM »

Did you put the file in ...
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC
The folder is usually hidden
And re-start Flowcode?

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: error compiling on pic18f26k22

Post by seokgi »

It was solved by applying the FC8 version above.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: error compiling on pic18f26k22

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

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

Post 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:
Attachments
fat gps liksprite 18f26k22 _v7.msg.txt
(2.29 KiB) Downloaded 99 times

azevedo
Posts: 14
Joined: Tue Feb 03, 2015 2:27 pm
Location: aveiro / portugal
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: error compiling on pic18f26k22

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

GotGasSA
Posts: 1
Joined: Mon Dec 02, 2019 3:47 pm
Contact:

Re: error compiling on pic18f26k22

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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: error compiling on pic18f26k22

Post by LeighM »

Hi,
Until we get this fixed, please roll back to previous version ...
roll-back.png
(13.59 KiB) Downloaded 1006 times

Post Reply