Compile problem with FC11

For general Flowcode discussion that does not belong in the other sections.
B2CAP-V6
Posts: 32
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 7 times

Re: Compile problem with FC11

Post by B2CAP-V6 »

Steve,
do you have an explanation as to why these files were modified?

Steve-Matrix
Matrix Staff
Posts: 1772
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 258 times
Been thanked: 414 times

Re: Compile problem with FC11

Post by Steve-Matrix »

Great news. I have no explanation as to why they were modified. Flowcode does not change them, except to replace with new versions via Library Update.

B2CAP-V6
Posts: 32
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 7 times

Re: Compile problem with FC11

Post by B2CAP-V6 »

Steve,
I just realized the .cof file is missing.

This file is very important for debugging in Proteus.
All these problems are really strange.

B2CAP-V6
Posts: 32
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 7 times

Re: Compile problem with FC11

Post by B2CAP-V6 »

I uninstalled and reinstalled PIC 8-bit toolchain, and it's the same; I still don't have the file with the .cof extension.

Steve-Matrix
Matrix Staff
Posts: 1772
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 258 times
Been thanked: 414 times

Re: Compile problem with FC11

Post by Steve-Matrix »

There will be a .elf file which serves the same function as a .cof file. I assume that Proteus has an option to use .elf instead of .cof. But if not, there may be a way to force the toolchain to output a .cof file instead (or as well).

B2CAP-V6
Posts: 32
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 7 times

Re: Compile problem with FC11

Post by B2CAP-V6 »

Thanks Steve for your feedback.
It's not possible to load program files other than .hex, .d39, .bas, and .cof. on Proteus

Furthermore, I installed FC 11 on another computer and I do have the .cof extension. I also had it before this series of problems, and I also had it on all FC 6, 7, 8, 9, and 11. I don't understand what happened.

mnfisher
Valued Contributor
Posts: 1867
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 884 times

Re: Compile problem with FC11

Post by mnfisher »

It looks like support for .cof has been removed from later versions (>2.0) of xc8.

On my machine - it (xc8) generates only .elf files.

I attempted to 'coerce' the compiler/linker to revert to .cof by altering the command line used to include

-std=c90 and -output=cof

- which wasn't successful :(

So - I would suggest either installing an older version of xc8 (copy from a machine where it works?)

Or - is there a newer version of Proteus that supports elf files?

Martin

Post Reply