Page 3 of 4

Re: Compile problem with FC11

Posted: Fri Feb 27, 2026 5:26 pm
by B2CAP-V6
Steve,
do you have an explanation as to why these files were modified?

Re: Compile problem with FC11

Posted: Fri Feb 27, 2026 6:11 pm
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.

Re: Compile problem with FC11

Posted: Sun Mar 01, 2026 2:57 am
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.

Re: Compile problem with FC11

Posted: Mon Mar 02, 2026 1:18 am
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.

Re: Compile problem with FC11

Posted: Mon Mar 02, 2026 9:22 am
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).

Re: Compile problem with FC11

Posted: Mon Mar 02, 2026 7:04 pm
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.

Re: Compile problem with FC11

Posted: Mon Mar 02, 2026 8:28 pm
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

Re: Compile problem with FC11

Posted: Tue Mar 03, 2026 9:27 am
by B2CAP-V6
Thanks Martin for your feedback.

Regarding Proteus, I have the latest version, 9.1 SP4.

Now I downloaded it from my other computer (XP8 v1.45) and changed the compiler path. I received error messages during compilation. I uninstalled FC11 and reinstalled it. I also uninstalled the Picv2 toolchain and installed the v8_Flowcode Compiler (which I should have on the other computer). Now I can no longer compile. FC11 was probably uninstalled incorrectly.

Re: Compile problem with FC11

Posted: Tue Mar 03, 2026 10:14 am
by Steve-Matrix
I've not tried it, but -gcoff might generate a .cof file when used as a command line switch for xc8.

Re: Compile problem with FC11

Posted: Tue Mar 03, 2026 10:33 am
by B2CAP-V6
I can now compile after a complete uninstall of FC11. But I still have the same problem: I don't have the file with the .cof extension.