Compile problem with FC11

For general Flowcode discussion that does not belong in the other sections.
mnfisher
Valued Contributor
Posts: 1871
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 885 times

Re: Compile problem with FC11

Post by mnfisher »

I'll try the -gcoff option - see if that does the trick...

Martin

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

Re: Compile problem with FC11

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

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

Re: Compile problem with FC11

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

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

Re: Compile problem with FC11

Post by B2CAP-V6 »

micro is computer, sorry

Steve-Matrix
Matrix Staff
Posts: 1774
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 »

If I use the following, I get a .cof file:

Code: Select all

--output=mcof

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

Re: Compile problem with FC11

Post 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

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

Re: Compile problem with FC11

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

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

Re: Compile problem with FC11

Post 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

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

Re: Compile problem with FC11

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

Post Reply