Page 4 of 4
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 10:36 am
by mnfisher
I'll try the -gcoff option - see if that does the trick...
Martin
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 11:11 am
by mnfisher
Testing the -gcoff option - it produced a file 'coff'. I'm not sure if renaming this proj.cof would do the trick - it does contain data (human readable) - but don't think it is a .cof file?
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 11:49 am
by B2CAP-V6
Is it not possible to replace the xc8 v2.10 compiler which is integrated into the current toolchain with version 1.45 which works on my other micro?
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 11:50 am
by B2CAP-V6
micro is computer, sorry
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 12:07 pm
by Steve-Matrix
If I use the following, I get a .cof file:
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 2:33 pm
by mnfisher
Yes - thanks Steve - that does seem to work!
To add: find the file pic_xc8_comp.bat (in C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch (or V10 if you are on v10))
Change the 'new compiler call' to :
Code: Select all
@REM New compiler call - allowing for additional parameters
"%MX_COMPILER%bin\xc8.exe" --chip=%MX_CHIP% "%MX_PROJECT%.c" --double=32 --float=32 --msgdisable=359,1273,1388 %MX_ADDPARAM% --output=mcof
Just needed the right incantations to work!
Martin
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 9:12 pm
by B2CAP-V6
Thank you both.
I'm sorry, but I didn't understand where I'm supposed to change the "new compiler call". In the "compilation options" tab?
I did find the pic_xc8_comp.bat file. What do I do with this?
Could you please send me a screenshot?
Sorry I didn't understand.
Re: Compile problem with FC11
Posted: Tue Mar 03, 2026 9:43 pm
by mnfisher
Edit the file pic_xc8_comp.bat (notepad will do). Add the extra option (--output=mcof) to the line as above (about half way down the file)
Take a backup (of the file) before saving...
Martin
Martin
Re: Compile problem with FC11
Posted: Wed Mar 04, 2026 6:40 am
by B2CAP-V6
A huge thank you to you both!
It works perfectly; I have the .cof file, and I can access VSM debug mode in Proteus.
That's great!
Sorry again for not understanding right away. I tried to edit the file, but I didn't have the "open with" option; I clicked "edit."
If this helps anyone...